Skip to content

Instantly share code, notes, and snippets.

@vayn
Created December 11, 2014 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vayn/f2c99e43ae54de4ce244 to your computer and use it in GitHub Desktop.
Save vayn/f2c99e43ae54de4ce244 to your computer and use it in GitHub Desktop.
from sys import stdout
from time import sleep
for i in range(1,20):
stdout.write("\r%d" % i)
stdout.flush()
sleep(1)
stdout.write("\n") # move the cursor to the next line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment