title: How to print value differences between 2 dictionaries
body: <p>So I have these 2 dictionaries (note the difference in the first key): </p>
  
  <pre><code>dict1= {'an': 2,
          'at': 4,
          'ao': 2,
          'ct': 6}
  
  dict2= {'an': 1,
          'at': 4,
          'ao': 2,
          'ct': 6}
  </code></pre>
  
  <p>I want to compare the values to print the values in dict2 that are different from those found in dict1.  I also want to print the key in dict2 that has the mismatching value.  I've tried this but it just prints out all the keys and values of dict2: </p>
  
  <pre><code>for k,v in dict2.items():
      if dict2[k] != dict1[k]:
          print(k, dict2[k])
  </code></pre>
  
  <p>Can someone help me understand why this isn't working?</p>