title: How do you update all the items in a dictionary at once?
body: <p>So I have a dictionary, and I want to update all the values in the dictionary with a <em>for loop</em>. I assume it would go something like this:</p>
  <pre class="lang-py prettyprint-override"><code>fruits = {&quot;apple&quot; : 2, &quot;banana&quot; : 1, &quot;orange&quot; : 4}
  
  for value in fruits:
    value += 2
  
  print(fruits)
  </code></pre>
  <p>I expect it to print <code>{&quot;apple&quot; : 4, &quot;banana&quot; : 3, &quot;orange&quot; : 6}</code>, but instead it just prints the original list. I am not quite sure how to fix this, so any insight would be greatly appreciated.</p>