title: Iterating nested Python dictionaries
body: <p>I am trying to collect info from nested dictionaries (loaded from json). I am trying to do that with for loop. I was unable to get a dictionary inside dictionary that is named "players". "players" contains dictionary with player names and their ids. I would like to extract that dictionary. You can find my code and sample of data below.</p>
  
  <p>I was able to iterate through first level to dictionary, but I cannot filter out deeper levels.</p>
  
  <p>I have been looking through other similar questions, but they were tackling different issues of dictionary iteration. I was not able to use them for my purposes. I was thinking about extracting the info that I need by using data.keys()["players"], but I cant handle this at the moment.</p>
  
  <pre><code>for key, value in dct.iteritems():
      if value == "players":
          for key, value in dct.iteritems():
              print key, value
  </code></pre>
  
  <p>A sample of my data:</p>
  
  <pre><code>{
  "[CA1]": {
      "team_tag": "[CA1]",
      "team_name": "CzechAir",
      "team_captain": "MatejCzE",
      "players": {
          "PeatCZ": "",
          "MartyJameson": "",
          "MidnightMaximus": "",
          "vlak_in": "",
          "DareD3v1l": "",
          "Hugozhor78": ""
      }
  },
  "[GWDYC]": {
      "team_tag": "[GWDYC]",
      "team_name": "Guys Who Dated Your Cousin",
      "team_captain": "Teky1792",
      "players": {
          "wondy22": "",
          "dzavo1221": "",
          "Oremuss": "",
          "Straker741": "",
          "Vasek9266": ""
      }
  }
  }
  </code></pre>