Python - Exception Handling Fundamentals
What will be the output of this code?
try:
print('X')
except ValueError:
print('Y')
else:
print('Z')try:
print('X')
except ValueError:
print('Y')
else:
print('Z')15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions