fork download
  1. try:
  2. result=10/0
  3. except ZeroDivisionError:
  4. print("Error: cannot divide by zero")
  5. print("program continues")
Success #stdin #stdout 0.05s 9640KB
stdin
Standard input is empty
stdout
Error: cannot divide by zero
program continues