title: Get Dictionary value Python
body: <p>I have a list of dictionaries in Python and I want to check if an dictionary entry exists for a specific term. It works using the syntax</p>
  
  <pre><code>if any(d['acronym'] == 'lol' for d in loaded_data):
         print "found"
  </code></pre>
  
  <p>but I also want to get the value stored at this key, I mean d['acronym']['meaning']. My problem is that when I try to print it out Python does not know about d. Any suggestions, maybe how can I get the index of the occurence without looping again through all the list? Thanks!</p>