title: How to add list elements into dictionary
body: <p>Let's say I have dict = {'a': 1, 'b': 2'} and I also have a list = ['a', 'b, 'c', 'd', 'e']. Goal is to add the list elements into the dictionary and print out the new dict values along with the sum of those values. Should look like:</p>
  
  <pre><code>2 a
  3 b
  1 c
  1 d
  1 e
  Total number of items: 8
  </code></pre>
  
  <p>Instead I get:</p>
  
  <pre><code>1 a
  2 b
  1 c
  1 d
  1 e
  Total number of items: 6
  </code></pre>
  
  <p>What I have so far:</p>
  
  <pre><code>def addToInventory(inventory, addedItems)
      for items in list():
          dict.setdefault(item, [])
  
  def displayInventory(inventory):
      print('Inventory:')
      item_count = 0
      for k, v in inventory.items():
         print(str(v) + ' ' + k)
         item_count += int(v)
      print('Total number of items: ' + str(item_count))
  
  newInventory=addToInventory(dict, list)
  displayInventory(dict)
  </code></pre>
  
  <p>Any help will be appreciated!</p>