title: Why is 'country' defined as the 'key' of the given 'values'?
body: <p>I saw this code written in an online course, and am confused why did python exactly returned 'France' 'Spain' 'Russia', and 'Japan'. I mean the country isn't actually defined as the 'key' of the given 'key value pairs'... right? Or is that how it really is defined?</p>
  <pre><code>capitals = {
      &quot;France&quot;: &quot;Paris&quot;,
      &quot;Spain&quot;: &quot;Madrid&quot;,
      &quot;Russia&quot;: &quot;Moscow&quot;,
      &quot;Japan&quot;: &quot;Tokyo&quot;,
  }
  
  for country in capitals:
      print(country)
  </code></pre>
  <p>Prints:</p>
  <pre><code>France
  Spain
  Russia
  Japan
  </code></pre>