Skip to content

Instantly share code, notes, and snippets.

@TApicella
Last active May 23, 2018 15:46
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 TApicella/8380796037e2187d6aba7b9ab03ae0d4 to your computer and use it in GitHub Desktop.
Save TApicella/8380796037e2187d6aba7b9ab03ae0d4 to your computer and use it in GitHub Desktop.
beergolf created by tapicella - https://repl.it/@tapicella/beergolf
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