We use cookies to enhance your browsing experience.

Learn More
Back to Library
PYTHONpython

Try Except

Handle exceptions.

try:
    x = 1 / 0
except ZeroDivisionError:
    print("Cannot divide by zero")
finally:
    print("Done")
python error control
25+Total Tools
Operations
4Languages
100%Privacy

We use cookies to enhance your experience and serve personalized ads.