My code is correct still the test case is not getting solved please help me with the correct code

Hello @yashsonawane18_29d0f9375c726519,
Your logic is correct but the code is not correctly indented that is why the output is wrong.
pat

If you correctly indent your statements then you would get the test case cleared.
correctpat

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.