Error in Project 9 python code

Please check this code and help me.I got error in writing this python code.

I think its indentation error. Changing that will help your code work.

@krishnagoud646 You have not indented your code at all. Python requires that the code be indented to be a valid code.
Please refer the code as written on the training site and modify yours accordingly.

@krishnagoud646

You are missing the closing bracket ) in the fifth line from below i.e. the line before the “except” line.