Printing on only one line : <p>I have a program that has to only print data onto one line.</p>

<p>What can I do to do this.</p>

<pre><code>for i in range(10):
    print(i)
</code></pre>

<p>Is it possible to print all of this on one line so it prints 0, erases the line, print 2, erases, etc..?</p>
