Source Code:
(back to article)
num1 = 10 num2 = 0 try: result = num1 / num2 except ZeroDivisionError: print("Error: Division by zero.")
Result:
Report an issue