title: Printing a for loop inside a for loop correctly in Python
body: <p>Hope someone can help me out here.
  I am using a for loop inside a for loop in Python. That is a nested-for-loop and I want to map the results together once.
  At the moment the results are displayed correctly once and then incorrectly repeated. This is my code snippet.</p>
  <pre><code>for country in [&quot;USA&quot;, &quot;Nigeria&quot;, &quot;Germany&quot;, &quot;India&quot;, &quot;Britain&quot;]:
      for code in [&quot;+1&quot;, &quot;+234&quot;, &quot;+49&quot;, &quot;+91&quot;, &quot;+44&quot;]:
          print(country, code)
          
  print(&quot;Done&quot;)
  </code></pre>
  <p>The result I am trying to achieve is this one.</p>
  <pre><code>USA +1
  Nigeria +234
  Germany +49
  India +91
  Britain +44
  Done!
  </code></pre>
  <p>But what I am getting at the moment is this one.</p>
  <pre><code>USA +1
  USA +234
  USA +49
  USA +91
  USA +44
  Nigeria +1
  Nigeria +234
  Nigeria +49
  Nigeria +91
  Nigeria +44
  Germany +1
  Germany +234
  Germany +49
  Germany +91
  Germany +44
  India +1
  India +234
  India +49
  India +91
  India +44
  Britain +1
  Britain +234
  Britain +49
  Britain +91
  Britain +44
  Done
  </code></pre>
  <p>Is there a way I can improve it and get the desired result?
  I will appreciate your help.</p>