title: Python Compare Two Key/Value Pairs
body: <p>Ive got two sets of key value pairs that look like this:</p>
  
  <pre><code>tom = {'coffee': 2, 'hotdog': 1}
  </code></pre>
  
  <p>and another like this:</p>
  
  <pre><code>namcat = {'hotdog stand':[hotdog, foodstand], 'cafe':[breakfast, coffee]}
  </code></pre>
  
  <p>Id like to compare whenever a key associated with 'tom' is the same as a value in 'namcat', and if so add 1 to a running total. I think its iterating over key-value pairs with lists that is causing me issues.</p>