Exception Handling
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.