0
The answer is WRONG!
try: variable = 10 print (10 / 2) except ZeroDivisionError: print("Error") print("Finished") The answer is : 5.0 The answer is NOT : 5.0 Finished
5 odpowiedzi
+ 18
The answer is-
5.0
Finished
I checked it.
+ 8
Why would the "Finished" part not get printed? It is outside the try/except clause...
+ 3
Python always makes you reconsider the wrong choice of using 2 instead of 4 spaces indents....
0
4 spaces indents and append Finally: before your last line. also if zerodivisionerror is calling, the answer will be Error Finished
0
indentation is very much important as far as python is concerned.. make sure ur indentation is right to get the correct answer..