title: Why would I want to use function: 'items' to process nested dictionary in Python?
body: <p>Let's say we have a dictionary inside a dictionary:</p>
  
  <pre><code>people = {
             0: {'name': 'John', 'age': 27, 'sex': 'Male'},
             4: {'name': 'Marie', 'age': 22, 'sex': 'Female'},
             7: {'name': 'Agness', 'age': 25, 'sex': 'Female'}
           }
  </code></pre>
  
  <p>What is a faster way to go through that dictionary?
  I saw on Internet solution:</p>
  
  <pre><code>for p_id, p_info in people.items():
      print("\nPerson ID:", p_id)        
      for key in p_info:
          print(key + ':', p_info[key])
  </code></pre>
  
  <p>However <em>items</em> function creates from scratch(?) a list of tuples. </p>
  
  <p>I feel like going through dictionary that way is faster:</p>
  
  <pre><code>for key in people:
      for value in people[key]:
          print(value)
  </code></pre>
  
  <p>Am I wrong? If yes, why?</p>