title: Python: print without overwriting printed lines
body: <p>I have </p>
  
  <pre><code>for i in range(0, 11): print i, "\n", i
  </code></pre>
  
  <p>I'd like my python program to print this way for each for loop</p>
  
  <p>1st loop: </p>
  
  <pre><code>1
  1
  </code></pre>
  
  <p>2nd loop:</p>
  
  <pre><code>1
  2
  2
  1
  </code></pre>
  
  <p>3rd loop:</p>
  
  <pre><code>1
  2
  3
  3
  2
  1
  </code></pre>
  
  <p>I've tried using \r\n or \033[1A but they just overwrite the previous line. Is there a way I can "push" the outputted line down so I don't overwrite it?</p>