import shelve
products = shelve.open("MyProduct.txt")
products['P001'] = "Mouse"
products['P002'] = "Keyboard"
products['P003'] = "Monitor"
products['P004'] = "Printer"
products['P005'] = "DVD"
products['P003'] = "Music System"

products.close()
print("All Products data saved in our shelve")
fe6095b92250c1f88ac0d8187af497cdd2a21c75
<mask token>

<mask token>
products.close()
print('All Products data saved in our shelve')

<mask token>
products = shelve.open('MyProduct.txt')
products['P001'] = 'Mouse'
products['P002'] = 'Keyboard'
products['P003'] = 'Monitor'
products['P004'] = 'Printer'
products['P005'] = 'DVD'
products['P003'] = 'Music System'
products.close()
print('All Products data saved in our shelve')

import shelve
products = shelve.open('MyProduct.txt')
products['P001'] = 'Mouse'
products['P002'] = 'Keyboard'
products['P003'] = 'Monitor'
products['P004'] = 'Printer'
products['P005'] = 'DVD'
products['P003'] = 'Music System'
products.close()
print('All Products data saved in our shelve')

import shelve
products = shelve.open("MyProduct.txt")
products['P001'] = "Mouse"
products['P002'] = "Keyboard"
products['P003'] = "Monitor"
products['P004'] = "Printer"
products['P005'] = "DVD"
products['P003'] = "Music System"

products.close()
print("All Products data saved in our shelve")