Question OOP-EXC-0009
MediumWhat is the output of this code?
try:
int("abc")
except ValueError:
print("Value error caught")
except Exception:
print("Generic error caught")
- A.
Both handlers run
- B.
Generic error caught
- C.
Sign up free to see the answer and a step-by-step explanation.