Created
November 25, 2011 22:01
-
-
Save gsiegman/1394512 to your computer and use it in GitHub Desktop.
99 Bottles of Beer on the Wall
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 os | |
"""OS X only""" | |
def sing(): | |
for i in range(0, 99): | |
num = 99 - i | |
os.system("say %s bottles of beer on the wall, %s bottles of beer, if one of those bottles should happen to fall, %s bottles of beer on the wall" % (num, num, num-1)) | |
if __name__ == '__main__': | |
os.system("say I am going to sing a song for you") | |
sing() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment