title: Printing the values in a nested dictionary in Python 2.x
body: <p>I have a dictionary type variable returned in my Python 2.x script that contains the below values:-</p>
  
  <pre><code>{u'image': u'/users/me/Desktop/12345_507630509400555_869403269181768452_n.jpg', u'faces': [{u'gender': {u'gender': u'FEMALE', u'score': 0.731059}, u'age': {u'max': 17, u'score': 0.983185}, u'face_location': {u'width': 102, u'top': 102, u'left': 426, u'height': 106}}]}
  </code></pre>
  
  <p>What I want to do is extract the following values for the given keys:-</p>
  
  <ul>
  <li>'gender' (the value being 'female') </li>
  <li>'score' (the value being '0.731059') </li>
  <li>'age'[max] (the value being '17') </li>
  <li>'age'[score] (the value being '0.983185)</li>
  </ul>
  
  <p>I tried the below but it doesn't seem to return what I am looking for:</p>
  
  <pre><code>      if key == 'faces':                      
            for k, v in key:                    
                print(k['gender'], k['max'], k['age'][0], k['age'][1])    
  </code></pre>
  
  <p>Any suggestions on how I can access and print the values I am interested in?                                                                                 </p>