Skip to content

Instantly share code, notes, and snippets.

@joschuck
Created September 30, 2018 11:21
Show Gist options
  • Save joschuck/11b529fa01f7230a518da173c6e3c9bd to your computer and use it in GitHub Desktop.
Save joschuck/11b529fa01f7230a518da173c6e3c9bd to your computer and use it in GitHub Desktop.
Python Console
import time
import sys
animation = "|/-\\"
for i in range(100):
time.sleep(0.1)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()
print "End!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment