Python - Exception Handling Fundamentals
What will be the output of this code?
try:
x = 5 / 0
except ZeroDivisionError:
print('Cannot divide by zero')try:
x = 5 / 0
except ZeroDivisionError:
print('Cannot divide by zero')15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions