Skip to content

Instantly share code, notes, and snippets.

@NaPs
Created December 11, 2009 17:51
Show Gist options
  • Save NaPs/254376 to your computer and use it in GitHub Desktop.
Save NaPs/254376 to your computer and use it in GitHub Desktop.
w='on the wall'
b=lambda x:'%d bottle%s of beer'%(x,'s'*(x>1))
v,p,n=',.\n'
def z(a='Take one down and pass it around',o=1):print b(i),w+v,b(i)+p+n,a+v,b((i-o)%100),w+p+n
i=99
while i>1:z();i-=1
z('Go to the store and buy some more',2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment