← All terms · Errors & control flow
try / except / finally
Handle exceptions. `finally` always runs (cleanup). Catching `Exception` is usually too broad — be specific.
Learn this interactively:
Open lesson lesson-101 →← All terms · Errors & control flow
Handle exceptions. `finally` always runs (cleanup). Catching `Exception` is usually too broad — be specific.
Learn this interactively:
Open lesson lesson-101 →