So, I want to store a dictionary in a persistent file. Is there a way to use regular dictionary methods to add, print, or delete entries from the dictionary in that file?
If your keys (not necessarily the values) are strings, the shelve standard library module does what you want pretty seamlessly.