Exception in Python

python

try/except

try:
    1/0
except Exception as e:
    print(f"{type(e).__name__}: {e}")
# ZeroDivisionError: division by zero