Skip to content

Instantly share code, notes, and snippets.

@ozkatz
Forked from gsiegman/99bottles
Created November 26, 2011 01:08
Show Gist options
  • Save ozkatz/1394781 to your computer and use it in GitHub Desktop.
Save ozkatz/1394781 to your computer and use it in GitHub Desktop.
99 Bottles of Beer on the Wall (as a one liner. I don't know why.)
import os; [ os.system('say %d bottles of beer on the wall, %d bottles of beer, if one of those bottles should happen to fall, %s bottles of beer on the wall' % (99 - i, 99 - i , 99 - i - 1)) for i in range(0, 99) ]
@ozkatz
Copy link
Author

ozkatz commented Nov 26, 2011

also, some part of me resisted hard coding the number 99. you know, to make it "future proof".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment