Python - Exception Handling Fundamentals
What will be the output of this code?
try:
x = 5 / 0
except Exception:
print("Error caught")
print("Done")try:
x = 5 / 0
except Exception:
print("Error caught")
print("Done")except Exception block catches this error and prints "Error caught". Then the program continues and prints "Done".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions