Created
April 29, 2016 04:12
-
-
Save jsbueno/5bb64ee9875ea1c396c63049aa5f2345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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