Nested Exception Handling
Mon 10 August 2026
try:
try:
x = int("abc")
except ValueError:
print("Inner exception handled")
except Exception:
print("Outer exception handler")
Inner exception handled
Score: 10
Category: chapter6_exception_handling