Page 159 -
P. 159
persistence
Test Drive
Add your with code to your program, and let’s confirm that it continues to function as expected. Delete the two
data files you created with the previous version of your program and then load your newest code into IDLE and give
it a spin.
No errors in the IDLE
shell appears to indicate
that the program ran
successfully.
If you check your folder, your two data files should’ve reappeared. Let’s take a closer look at the data file’s contents
by opening them in your favorite text editor (or use IDLE).
Here’s what the
man said.
Here’s what the
other man said.
You’ve saved the lists in two files containing what the Man said and what the Other
man said. Your code is smart enough to handle any exceptions that Python or
your operating system might throw at it.
Well done. This is really coming along.
you are here 4 123