Source Code:
(back to article)
def divide(a, b): assert b != 0, "Cannot divide by zero." return a / b try: divide(10, 0) except Exception as e: print(e)
Result:
Report an issue