Question OOP-EXC-0063
HardWhat is the output of this code?
try:
try:
raise KeyError("k")
except KeyError as e:
raise ValueError("v") from e
except ValueError as e:
print(type(e.__cause__).__name__, e)
- A.
KeyError v
- B.
KeyError k
- C.
ValueError v
- D.
None v
Sign up free to see the answer and a step-by-step explanation.