# your code goes here def a(): try: x = 10/0; except Exception as e: raise ValueError('failed') from e def b(): a(); def c(): b(); a();
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 4, in a ZeroDivisionError: division by zero The above exception was the direct cause of the following exception: Traceback (most recent call last): File "./prog.py", line 14, in <module> File "./prog.py", line 6, in a ValueError: failed