fork download
  1. # your code goes here
  2. def a():
  3. try:
  4. x = 10/0;
  5. except Exception as e:
  6. raise ValueError('failed') from e
  7.  
  8. def b():
  9. a();
  10.  
  11. def c():
  12. b();
  13.  
  14. a();
Runtime error #stdin #stdout #stderr 0.01s 27712KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
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