title: How to use a double while loop in python?
body: <p>Does a python double while loop work differently than a java double loop?
  When I run this code:</p>
  
  <pre><code>i = 0
  j = 1
  while i &lt; 10:
      while j &lt; 11:
          print i, j
          j+=1
      i+=1
  </code></pre>
  
  <p>I get the following output:</p>
  
  <p>0 1 <br>
  0 2 <br>
  0 3 <br>
  0 4 <br>
  0 5 <br>
  0 6 <br>
  0 7 <br>
  0 8 <br>
  0 9 <br>
  0 10 <br></p>
  
  <p>I want it to keep looping to print 1 0, 1 1, 1 2, ... 2 0, 2 1, 2 3... etc. Why does it stop after only one iteration?</p>