Skip to content

Instantly share code, notes, and snippets.

@gsiegman
Created November 25, 2011 22:01
Show Gist options
  • Save gsiegman/1394512 to your computer and use it in GitHub Desktop.
Save gsiegman/1394512 to your computer and use it in GitHub Desktop.
99 Bottles of Beer on the Wall
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