If I had the following code:
for x in range(10): print x
I would get the output of
1 2 etc..
What I
Suppress the newline and print \r.
\r
print 1, print '\r2'
or write to stdout:
sys.stdout.write('1') sys.stdout.write('\r2')