# Inventory System -- main (starter).
#
# Run from this folder:
#   cd projects/05-inventory/starter
#   python main.py

from inventory import Item, Inventory

sword  = Item("sword",  3.5, 50)
shield = Item("shield", 5.0, 30)
potion = Item("potion", 0.2, 5)

bag = Inventory()
bag.add(sword)
bag.add(shield)
bag.add(potion)

bag.list()

print()
removed = bag.remove("sword")
if removed:
    print("(removed " + removed.name + ")")
print()

bag.list()
