0
why getting "invalid syntax error" instead of "Error in try except block"
try: try: print(2 + "Hello") Except: print("Error occurred") except: print("Error in try except block")
2 Respostas
+ 3
Line 4: except must be lowercase. The Syntax error is thrown by the interpreter before the program is even executed.
+ 1
Oh yes. Thanks