title: Update dictionary items with a for loop
body: <p>I would like update a dictionary items in a for loop here is what I have:</p>
  
  <pre><code>&gt;&gt;&gt; d = {}
  &gt;&gt;&gt; for i in range(0,5):
  ...      d.update({"result": i})
  &gt;&gt;&gt; d
  {'result': 4}
  </code></pre>
  
  <p>But I want d to have following items:</p>
  
  <pre><code>{'result': 0,'result': 1,'result': 2,'result': 3,'result': 4}
  </code></pre>