DEV Community

TANYA LYOP ACHAYI
TANYA LYOP ACHAYI

Posted on

Day 23 of 100.


When writing code, mistakes (bugs) happen. Some are syntax errors (like forgetting a colon :), others are runtime errors (like dividing by zero or trying to open a file that doesn’t exist).

Instead of letting the program crash, Python allows us to handle errors gracefully using try, except, and other keywords.

I thought it was an actual "bug" at first 😄😄😅

PythonZeroToHeroStudent

BlackPythonDevs

100DaysOfPython

ErrorHandlingInPython.

Top comments (0)