# Inventory System -- main (finished). # # Run from this folder: # cd projects/05-inventory/finished # 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()