Expected output (

Hi,

Please, first look at Expected output (attach file) carefully, then fix my code. It is working but there some errors need to fix.

Note: its python code.

  • Attachment 1