title: Trying to use python map to add input values to a dictionary
body: <p>I am using map to pass input parameters from STDIN to my function, dict_add,but when I print out my dictionary, it is empty.</p>
  <p>Can someone please tell me where I am going wrong?</p>
  <p>Not doing this for any reason, just practicing python code.</p>
  <pre><code>store = {}
  
  def dict_add(n):
     store[n] = store.get(n,0) + 1
  
  
  results = map(dict_add,input(&quot;Number: &quot;).split())
  
  
  
  print(store) # comes out empty 
  
  </code></pre>