Source Code:
(back to article)
try: # some code that may raise an exception 1 / 0 except ZeroDivisionError as e: # e contains the exception message print(e)
Result:
Report an issue