title: Python - sum values in dictionary
body: <p>I have got pretty simple list:</p>
  
  <pre><code>example_list = [
      {'points': 400, 'gold': 2480},
      {'points': 100, 'gold': 610},
      {'points': 100, 'gold': 620},
      {'points': 100, 'gold': 620}
  ]
  </code></pre>
  
  <p>How can I sum all <em>gold</em> values? I'm looking for nice oneliner.</p>
  
  <p>Now I'm using this code (but it's not the best solution):</p>
  
  <pre><code>total_gold = 0
  for item in example_list:
      total_gold += example_list["gold"]
  </code></pre>