Project 9 code error of python

Can someone please explain why I’m getting the error. I’ve written the same thing as shown.

@yashil2004 Your indentation is the cause of the error. The “except” block of statements is inside the try block which had caused the error. The correct syntax for try except will be like:
image
THIS is just an example. Hope it clears your doubt.

1 Like

Thank you!!! Got the mistake!!