Content description:
- Python exception handling
- Hierarchy of exceptions
- Optional blocks: else and finally
Errors that show up during the execution of the program and are not syntax errors belong to the so-called exceptions.
You can handle these exceptions by putting code that can cause an exception in a try block, and the code to handle the exception in the except block: