title: Pulling items from dictionary and adding to a new list. (Python)
body: <p>I am hoping that someone can help me to figure out why this code to add an item from the dictionary to a new list called 'inventory' will not work. This is the error message that I receive: Traceback (most recent call last):
  File &quot;C:/filenameblahblahblah&quot;, line 71, in 
  inventory.append(rooms(current_room['item']))
  TypeError: 'dict' object is not callable.
  This is for a game that I have to create for class, and this is the only part of the game that isn't working for me. I need to add the 'item' to the list 'inventory' and then remove the 'item' from the dictionary 'rooms'. I apologize in advance if I do not have the sample of the code formatted properly, as I am still learning. Thanks in advance.</p>
  <p><code>sample of my dictionary</code></p>
  <pre><code>rooms = {
  'Cabin A': {'name': 'Cabin A', 'go starboard': 'Stern', 'item': 'Spearhead', 'item name': 'a 
      Spearhead'}, 
  'Cabin B': {'name': 'Cabin B', 'go port': 'Hull', 'item': 'Spear Gun', 'item name': 'a Spear 
      Gun'}
          }
  </code></pre>
  <p><code>sample of what I have so far to try to pull from dictionary to add to list:</code></p>
  <pre><code>current_room = ['Cabin A']
  inventory = []
  if command in get_items:
      if 'item' in current_room:
          inventory.append(rooms(current_room['item']))
          del rooms[current_room['item']]
          rooms[current_room].update
          print(inventory)
      else:
          print('Nothing here.')
  </code></pre>