title: How to check if a key-value pair is present in a dictionary?
body: <p>Is there a smart pythonic way to check if there is an item (key,value) in a dict?</p>
  
  <pre><code>a={'a':1,'b':2,'c':3}
  b={'a':1}
  c={'a':2}
  
  b in a:
  --&gt; True
  c in a:
  --&gt; False
  </code></pre>