for HCC classes taught by Rylan Schubkegel
Due 11/13 at 11:59
To practice loading and saving files, you will extend the Guess the Number project to incorporate persistent high scores. I highly recommend that you make a copy of the project and edit the copy instead of editing the original project directly.
Your program must meet the following requirements:
data/
directory (if available)
data/
directory
It’s up to you to decide how to name the files, as well as which module you prefer to save and load the data with.
If you use the pickle
module, make sure to use either rb
, wb
, or ab
file modes since pickle does not save data in plaintext format.
Review the week 9 slide deck for an example of how to use pickle
and json
modules.
When your program meets the requirements, download and submit your .py
file here: