Question OOP-EXC-0040
EasyWhat is the output of this code?
def f():
raise ValueError("v")
try:
f()
print("after")
except ValueError:
print("caught")
- A.
after caught
- B.
after
- C.
caught
- D.
v
Sign up free to see the answer and a step-by-step explanation.