Skip to content

Instantly share code, notes, and snippets.

@vlad-bezden
Last active September 18, 2019 13:56
Show Gist options
  • Save vlad-bezden/4c3cb6aeba4e17877a5b81de01bf1602 to your computer and use it in GitHub Desktop.
Save vlad-bezden/4c3cb6aeba4e17877a5b81de01bf1602 to your computer and use it in GitHub Desktop.
spinning wheel to indicate a work in progress
from itertools import cycle
from time import sleep
for frame in cycle(r'-\|/'):
print('\r', frame, sep='', end='', flush=True)
sleep(0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment