Classic 99 bottles of beer by dk4kd

i=99;r=".\n";o=" on the wall";a=lambda n:"%d bottle"%n+["","s"][n>1]+" of beer"\x0d
while i:p=a(i)+o+", "+a(i)+r;i-=1;print p+"Take one down and pass it around, "+[a(i),"no more bottles of beer on the wall.\n\nNo more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more. "+a(99)][i<1]+o+r

Note that non-ascii characters in the above source code will be escaped (such as \x9f).


return top