# Inventory problem # Function to return if an item is in a player inventory def Exists(Inventory, Item): # Index to first character will be >-1 if the item exists in the inventory if Inventory.find(Item) > -1: return True else: return False # Main program Inventory = "Sword, Shield, Potion, Amulet" print(Exists(Inventory,"Bow"))