fork download
  1. import logging
  2. def foo(s):
  3. return 10/int(s)
  4.  
  5. def bar(s):
  6. return foo(s)*2
  7.  
  8. def main():
  9. try:
  10. bar('0')
  11. except Exception as e:
  12. logging.exception(e)
  13. main()
  14. print('END')
  15. # your code goes here
  16. # your code goes here
  17. # your code goes here
Success #stdin #stdout #stderr 0.21s 15968KB
stdin
Standard input is empty
stdout
END
stderr
ERROR:root:division by zero
Traceback (most recent call last):
  File "./prog.py", line 10, in main
  File "./prog.py", line 6, in bar
  File "./prog.py", line 3, in foo
ZeroDivisionError: division by zero