+ 2
Why is it not working for SyntaxError?
I created a syntax error on purpose, though it doesn't return "due to invalid syntax" in my case. Why is it? try: num1 = 7 num2 = 9 print (num1 / num2))))))))) print("Done calculation") except SyntaxError: print("An error occurred") print("due to invalid syntax")
4 odpowiedzi
+ 5
Due to the synthax error, python can't continue to read your program.
Errors are not meant to be caught in general.
+ 2
Only "SyntaxError"
0
What does it return?
- 2
Daniel rape me please