This code:
import time for i in range(10): print(i) time.sleep(.5)
Causes my computer to hang for 5 seconds, and then print out 0-9
Try this:
for i in range(10): sys.stdout.write('\r' + str(i)) time.sleep(.5)
here '/r' is carriage return, it brings the cursor first place again.
'/r'