fork download
  1. def xyz(a,b):
  2. try:
  3. c=a/b
  4. print("Result of c=",c)
  5. except ZeroDivisionError:
  6. print("Error: cannot divide by zero")
  7. finally:
  8. print("over and out")
  9. xyz(4,0)
Success #stdin #stdout 0.03s 9488KB
stdin
Standard input is empty
stdout
Error: cannot divide by zero
over and out