title: Python project: Create a program that keeps track of the items that a wizard can carry
body: <p><code>show</code> doesn't work and it won't show any of my items</p>
  
  <p>In the first file of my code I have the following content:</p>
  
  <p>items.py:</p>
  
  <pre><code>list(inventory_list):
  inventory = ["a wooden staff", "a wizard hat", "a cloak of invisibility",
  
  "some elven bread", "an unknown potion", "a scroll of uncursing",
  
  "a scroll of invisibility", "a crossbow", "a wizard's cloak"]
  item = inventory.pop()
  item = inventory.pop(1)
  item = inventory.pop(2)
  item = inventory.pop(3)
  item = inventory.pop(4)
  item = invnetory.pop(5)
  item = inventory.pop(6)
  item = inventory.pop(7)
  item = inventory.pop(8)
  </code></pre>
  
  <p>In my other file which which is the main.py files looks like this. </p>
  
  <pre><code>import random
  import items as i
  inventory_list = 0
  
  def list(inventory_list):
      inventory = ["a wooden staff", "a wizard hat", "a cloak of invisibility",
  
      "some elven bread", "an unknown potion", "a scroll of uncursing",
  
      "a scroll of invisibility", "a crossbow", "a wizard's cloak"]
      item = inventory.pop()
      item = inventory.pop(1)
      item = inventory.pop(2)
      item = inventory.pop(3)
      item = inventory.pop(4)
  
  
  
  def display_menu(inventory_list):
      random.shuffle(inventory_list)
      print("The Wizard Inventory Program")
      print()
      print("COMMAND MENU")
      print("show - Show all items")
      print("grab - Grab an item")
      print("edit - Edit an item")
      print("drop - Drop an item")
      print("exit - Exit program")
  
  def show(inventory_list):
      i = 1
      for item in inventory_list:
          print(str(i) + ". " + item)
          i += 1
      print()
  
  def grab(inventory_list):
      item = input("Name: ")
      inventory_list.append(item)
      print(item + " was added.\n")
  
  def drop(inventory_list):
      number = int(input("Number: "))
      if number &lt; 1 or number &gt; len(inventory_list):
          print("Invalid item number.\n")
      else:
          number = inventory_list.pop(number-1)
          print(item + " was deleted.\n")
  
  def edit(inventory_list):
      number = int(input("Number: "))
      if number &lt; 1 or number &gt; len(inventory_list):
          print ("Invalid item number.\n")
      else:
          number = inventory_list.pop(input())
          print( item + "was edited to.\n")
  
  def main():
      inventory_list = ["a wooden staff", "a wizard hat", "a cloak of invisibility",
  
      "some elven bread", "an unknown potion", "a scroll of uncursing",
  
      "a scroll of invisibility", "a crossbow", "a wizard's cloak"]
      display_menu(inventory_list)
      while True:
          command = input("Command: ")
          if command.lower() == "show":
              list(inventory_list)
          elif command.lower() == "grab":
              grab(inventory_list)
          elif command.lower() == "drop":
              drop(inventory_list)
          elif command.lower() == "exit":
              break
          else:
              print("Not a valid command. Please try again.\n")
      print("Bye!")
  
  if __name__== "__main__":
      main()
  </code></pre>
  
  <p>Another question is do I need to have separate files or can I put it all in one?</p>