import pickle

shoplistfile = 'shoplist.data'

shoplist = ['apple','mango','bannana','chikku']

f = open(shoplistfile, 'wb')
#dump object to the file
pickle.dump(shoplist, f)
f.close()
#destroy shoplist variable
del shoplist
#read back from the storage
f = open(shoplistfile, 'rb')
#load object from the file
storedlist = pickle.load(f)
print(storedlist)
f.close()

aa96f7ddced147cc23cb41dc40b7b1ecb2cf9435
<mask token>

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

<mask token>
shoplistfile = 'shoplist.data'
shoplist = ['apple', 'mango', 'bannana', 'chikku']
f = open(shoplistfile, 'wb')
pickle.dump(shoplist, f)
f.close()
del shoplist
f = open(shoplistfile, 'rb')
storedlist = pickle.load(f)
print(storedlist)
f.close()

import pickle
shoplistfile = 'shoplist.data'
shoplist = ['apple', 'mango', 'bannana', 'chikku']
f = open(shoplistfile, 'wb')
pickle.dump(shoplist, f)
f.close()
del shoplist
f = open(shoplistfile, 'rb')
storedlist = pickle.load(f)
print(storedlist)
f.close()

import pickle

shoplistfile = 'shoplist.data'

shoplist = ['apple','mango','bannana','chikku']

f = open(shoplistfile, 'wb')
#dump object to the file
pickle.dump(shoplist, f)
f.close()
#destroy shoplist variable
del shoplist
#read back from the storage
f = open(shoplistfile, 'rb')
#load object from the file
storedlist = pickle.load(f)
print(storedlist)
f.close()
