title: Python3 how to clear previous prints while looping, flush?
body: <p>I want to show only one item at the screen I guess this should be done with print(..., flush=True) but it don't work as I expected.</p>
  <pre><code>for i in range(0,100):
      print(i, end='', flush=True)
  </code></pre>
  <p>Now I get a numbers like this <code>012345678....</code> and what I want to see at the screen is only one number without seeing previous prints so with first iteration it shows only <code>0</code> second shows only <code>1</code>, I thought flush would do the trick but it didn't so where am I wrong?</p>