title: Going through dictionaries in a more efficient way
body: <p>I have a Python script that I am calling from PHP. The following loop is making my script to execute little slow. I have to display the stuff on browser. The <code>p</code> dictionary is quite large.</p>
  
  <p>Is there any more efficient way I can write the below code?</p>
  
  <pre><code>for key, value in p.iteritems():
      for key1, value1 in value.iteritems():
          if value1['platform_name'] == name:
              lis.append(value1['full_external_id'])
  </code></pre>