Skip to content

Instantly share code, notes, and snippets.

@jsbueno
Created April 29, 2016 04:12
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 jsbueno/5bb64ee9875ea1c396c63049aa5f2345 to your computer and use it in GitHub Desktop.
Save jsbueno/5bb64ee9875ea1c396c63049aa5f2345 to your computer and use it in GitHub Desktop.
import sys, random, time
def h():
positions = "\\o| \\o/ |o/ /o/ |o| \\o\\".split()
x=10
for i in range(50):
print (" " * x + positions[i % len(positions)] + " ", end="")
sys.stdout.flush()
time.sleep(0.2)
print("\b" * 80, end="")
x += random.choice((-1, 0, 1))
h()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment