Skip to content

Instantly share code, notes, and snippets.

@EntityReborn
Created May 14, 2011 03:27
Show Gist options
  • Save EntityReborn/971890 to your computer and use it in GitHub Desktop.
Save EntityReborn/971890 to your computer and use it in GitHub Desktop.
import time
numchars = 41
wait = 0.25
x = "."
o = " "
def wave(x, o):
for num in xrange(1, numchars, 2):
time.sleep(wait)
print "{0:{1}^{2}}".format(x*num, o, numchars)
while True:
wave(x, o)
wave(o, x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment