title: Accessing items in lists within dictionary python
body: <p>I have a dictionary that has keys associated with lists. </p>
  
  <pre><code>mydict = {'fruits': ['banana', 'apple', 'orange'],
           'vegetables': ['pepper', 'carrot'], 
           'cheese': ['swiss', 'cheddar', 'brie']}
  </code></pre>
  
  <p>What I want to do is use an if statement that if I search for item and its in any of the lists within the dictionary it will return the key. This is what I was trying:</p>
  
  <pre><code>item = cheddar
  if item in mydict.values():
      print key 
  </code></pre>
  
  <p>but it doesn't do anything, the output should be:</p>
  
  <pre><code>cheese
  </code></pre>
  
  <p>This seems like a simple thing but I just can't figure it out. Any help is awesome.</p>