Output is very close to the answer can you please check

Hello @supratik260699,

You have implemented the logic incorrectly.
Corrected Code:

Hope, this would help.
Give a like if you are satisfied.

Can u please explain it?

Hey @supratik260699,

I have explained it in the comments.
Check:

Let me know if you don’t understand something.

1 Like