import pickle

shoplistfile = "shoplist.data"
shoplist = ["Milk", "Sausages", "Eggs"]
f = open(shoplistfile, "wb")
pickle.dump(shoplist, f)
f.close()
del shoplist
f = open(shoplistfile, "rb")
storedlist = pickle.load(f)
print(storedlist)
95b2519f38a22bd8d81556be2fa4b08cc11e8c07
<mask token>

<mask token>
pickle.dump(shoplist, f)
f.close()
del shoplist
<mask token>
print(storedlist)

<mask token>
shoplistfile = 'shoplist.data'
shoplist = ['Milk', 'Sausages', 'Eggs']
f = open(shoplistfile, 'wb')
pickle.dump(shoplist, f)
f.close()
del shoplist
f = open(shoplistfile, 'rb')
storedlist = pickle.load(f)
print(storedlist)

import pickle
shoplistfile = 'shoplist.data'
shoplist = ['Milk', 'Sausages', 'Eggs']
f = open(shoplistfile, 'wb')
pickle.dump(shoplist, f)
f.close()
del shoplist
f = open(shoplistfile, 'rb')
storedlist = pickle.load(f)
print(storedlist)

import pickle

shoplistfile = "shoplist.data"
shoplist = ["Milk", "Sausages", "Eggs"]
f = open(shoplistfile, "wb")
pickle.dump(shoplist, f)
f.close()
del shoplist
f = open(shoplistfile, "rb")
storedlist = pickle.load(f)
print(storedlist)