title: progress of loop indicator
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3160699/python-progress-bar">Python Progress Bar</a>  </p>
  </blockquote>
  
  
  
  <p>I am running a for loop 10,000 times, 
  but inside the loop there are a lot of calculations going on.
  I would like to print out a progress message to the console informing me how far along in the loop the program is how much longer I might have to wait. </p>
  
  <p>the basic loop is</p>
  
  <pre><code>n = 10000 
  for i in range(n):
     do_stuff_method()
     if(i%100 == 0):
        print (float(i)/n)*100,
  </code></pre>
  
  <p>This prints out a percentage message on the same line, but the problem is that the next thing that I print out is also printed out on the same screen. That, and since there are 99 prinouts, the console gets pretty wide and there is a lot of scrolling across.</p>
  
  <p>What I would really like is for the console to print out the current % done, and an estimated time to finsih on the one line replace that which had been previously printed, so there doesn't have to be a lot scrolling. </p>
  
  <p>Can this be done?</p>
  
  <p>Cheers,
  Davy </p>