Skip to content
Skip to page content
soylai.com

Exception Handling — Part 2: try, except, else and finally

Beta
Lesson

Handling exceptions

Part 2 — try, except, else and finally, and how to write programs that recover.

In this lesson you will

  • Handle exceptions with try and one or more except clauses
  • Use else and finally correctly and predict which blocks run
  • Write programs that recover from bad input and continue
Part 2 at a glance