Created
May 14, 2011 03:27
-
-
Save EntityReborn/971890 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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