Python - Exception Handling Fundamentals
Find the error in this code snippet and choose the correct fix:
try:
x = int('abc')
except ValueError, TypeError:
print("Error occurred")Find the error in this code snippet and choose the correct fix:
try:
x = int('abc')
except ValueError, TypeError:
print("Error occurred")except ValueError, TypeError: is invalid for catching multiple exceptions.except (ValueError, TypeError):.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions