Skip to content

Instantly share code, notes, and snippets.

@jmg-duarte
Created May 7, 2018 10:18
Show Gist options
  • Save jmg-duarte/e0df81f2cfb7448106db4f585efacd8a to your computer and use it in GitHub Desktop.
Save jmg-duarte/e0df81f2cfb7448106db4f585efacd8a to your computer and use it in GitHub Desktop.
A single line loader
def console_loader():
import time
import sys
for i in range(100):
sys.stdout.write('\r{}'.format(i))
sys.stdout.flush()
time.sleep(0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment