Skip to content

Glossary: Python Beyond the Basics

try / except / else / finally

Also written: else, finally, except

`except` handles an error, `else` runs only if the `try` raised no error, and `finally` runs no matter what, making it the place for clean-up.

Where the book teaches it

Related terms

exceptionraise (bare / re-raise)