Professional Documents
Culture Documents
inventory.update({'Steel':{"stock":200, "price":1000},
'Concrete':{"stock":900, "price":550},
'Cement':{"stock":700, "price":250},
'Bricks':{"stock":950, "price":700},
'Wood':{"stock":800, "price":180}})
if choice in {1,2,3,4,5}:
if choice == 1:
print (inventory)
inventory = inventory
if choice == 2:
if option == "name":
del inventory[name]
print (inventory)
else:
if values["stock"] == stock:
print (inventory)
break
else:
print (f"No item with {stock} items in stock found in the inventory.")
else:
print("Invalid option.")
inventory = inventory
if choice == 3:
if not inventory:
else:
inventory = inventory
if choice == 4:
if name in inventory:
print (inventory)
else:
elif choice == 5:
else: