title: How to match a string value with dictionary value stored as list?
body: <p>Suppose i have a dictionary</p>
  
  <pre><code>A1={'b1':['X','0'],'b2':'Empty',.............,}
  </code></pre>
  
  <p>and then i have a string</p>
  
  <pre><code>item=X
  </code></pre>
  
  <p>now i want to match the above string value only with the dict value because other is getting updated dynamically and only string is the way to search.I tried the below code but in vain</p>
  
  <pre><code>for key,value in A1.iteritems():
          if value==item:
              print A1.keys()
  </code></pre>