Skip to content

Instantly share code, notes, and snippets.

@starenka
Created January 24, 2017 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starenka/102864bb7ffef1a84f7261ca7c8f6814 to your computer and use it in GitHub Desktop.
Save starenka/102864bb7ffef1a84f7261ca7c8f6814 to your computer and use it in GitHub Desktop.
bottles.py
i=99;p=lambda:`i or 99`+' bottle'+'s of beer on the wall'[i==1:]
while i:r=p();i-=1;print"%s, %s.\n"*2%(r,r[:-12],'Take one down and pass it around'if i else'Go to the store and buy some more',p())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment