Tell error in my code

I had tried to do the same code as done in the video but the code is not working

@Ramitgoel
The loop defined at line 44 in your code has its body beginning in line 45 and ending at line 46. Check the scope of the corresponding loop in the video tutorial.

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.