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:
THIS is just an example. Hope it clears your doubt.
Thank you!!! Got the mistake!!