title: Problems comparing different dictionaries in python
body: <p>I have the following dictionaries :</p>
  
  <pre><code>dict1=[{'code':'fgx23','number':23},{'code':'dx22a','number':2},{'code':'dsw23','number':10}]
  
  dict2=[{'code':'dx22a','number':9},{'code':'dsw23','number':1},{'code':'fgx23','number':20}]
  </code></pre>
  
  <p>The question is: how to add the numbers that have the same code</p>
  
  <p>For example, in "dict1" the code "dx22a" has the number 2 and the "dict2" the code " dx22a " is number 9 , so the result is 11 .</p>
  
  <p>help and thanks</p>