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.
Glossary: Python Beyond the Basics
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.