Question 1 of Exceptions and Handling
The only time I get the answer = "5.0 Finished" is when I run the code in sololearn's playground. When I type the code into Python Shell I get the following: >>> try: variable = 10 print(10/2) except ZeroDivisionError: print("ERROR") print("FINISHED") SyntaxError: invalid syntax >>> try: variable = 10 print(10/2) except ZeroDivisionError: print("ERROR") print("FINISHED") 5.0 >>> try: variable = 10 print(10/2) except ZeroDivisionError: print("ERROR") print("FINISHED") SyntaxError: unindent does not match any outer indentation level Everyone is saying how important the indent is. I have tried every way I can think of and cannot come up with the defined answer outside of sololearn's playground. Someone please show me where I am going wrong and how to make this work in shell. Show your work.