Page 232 - Beginning Programming with Pyth - John Paul Mueller
P. 232
4. Click Run Cell.
The application displays a series of messages, including the finally clause message, as shown in Figure 10-16. This part of the example shows that the finally clause always executes, so you need to use it carefully.
FIGURE 10-15: Use the finally clause to ensure specific actions take place before the application ends.
FIGURE 10-16: Be sure to remember that the finally clause always executes.