The finally block of a try ... except clause

Question Q4.1.2

What is the point of the finally clause? Why not put any statements you want executed after the try block (regardless of whether or not an exception has been raised) after the entire try ... except clause?

Hint: See what happens if you modify Example E4.5 to put the statements in the finally clause after the try block.


Solution Q4.1.2