Created
December 11, 2009 17:51
-
-
Save NaPs/254376 to your computer and use it in GitHub Desktop.
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
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