0
Exceptions
try: c = 10 print(c/0) print(c + "u") print(c/2) except ZeroDivisionError: print("divided by zero") except TypeError: print("incompatible characters") The lesson tells us that we can compute multiple exceptions. But why am I only getting the output of one exception( the first one)?
2 Answers
+ 4
Execution of the try block stops as soon as the first error occurs.
+ 1
Thanks a lot đđ