title: Python sum on keys for List of Dictionaries
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3490738/how-to-sum-dict-elements">How to sum dict elements</a>  </p>
  </blockquote>
  
  
  
  <p>I have a list of dictionaries as following:</p>
  
  <pre><code>[{'Name': 'A', 'amt':100},
   {'Name': 'B', 'amt':200},
   {'Name': 'A', 'amt':300},
   {'Name': 'C', 'amt':400},
   {'Name': 'C', 'amt':500},
   {'Name': 'A', 'amt':600}]
  </code></pre>
  
  <p>I want to sum <code>amt</code> for each <code>name</code> and get following result in list of dict:</p>
  
  <pre><code> [{'Name':'A', 'amt':1000},
    {'Name':'B', 'amt':200},
    {'Name':'C', 'amt':900}]
  </code></pre>