Last active
May 23, 2018 15:46
-
-
Save TApicella/8380796037e2187d6aba7b9ab03ae0d4 to your computer and use it in GitHub Desktop.
beergolf created by tapicella - https://repl.it/@tapicella/beergolf
This file contains hidden or 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
p=print | |
r=str | |
m=',\n' | |
b=' bottles of beer' | |
w=' on the wall' | |
f='Take one down, pass it around'+m | |
n='.\n' | |
q=w+n | |
y=w+m | |
k=n+f | |
l=b+q | |
a,z,s='21s' | |
for i in range(99,2,-1): | |
j=r(i) | |
p(j+b+y+j+b+k+r(i-1)+l) | |
c=b.replace(s,'') | |
p(a+b+y+a+b+k+z+c+q) | |
t='Go to the store and buy some more'+m | |
p(z+c+y+z+c+n+t+'99'+l) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment