title: Python: Inserting into dictionary using FOR Loop
body: <p>i have searched through the forum and can't understand if i can use the following construct to insert new entries into my Python Dictionary...without turning it into a list.</p>
  
  <pre><code>for x in range(3):    
     pupils_dictionary = {}
     new_key =input('Enter new key: ')
     new_age = input('Enter new age: ')
     pupils_dictionary[new_key] = new_age
  print(pupils_dictionary)
  </code></pre>
  
  <p>The output is as follows: </p>
  
  <pre><code>Enter new key: Tim
  Enter new age: 45
  Enter new key: Sue
  Enter new age: 16
  Enter new key: Mary
  Enter new age: 15
  {'Mary': '15'}
  </code></pre>
  
  <p>Why does ONLY Mary:15 go in, and none of the others?</p>
  
  <p>thanks/</p>