Sketching the Journey of Learning

Bali's notes & demos.

Exception Handling | Sketching the Journey of Learning

Exception Handling

May 25, 2022

The program tries to execute the code in the try clause first. If an exception is raised and the exception match the type of an except clause, the progem execute the code in that except clause. If no exception is raised in the try clause, the program then execute the code in the else clause. The program execute the code in the finally clause after all the try, except, else clauses wheter or not the try statement produces and exception.

Reference

Python Document