Skip to content

Instantly share code, notes, and snippets.

@werdl
Created April 21, 2023 13:19
Show Gist options
  • Save werdl/a63996e19f40ec511de1f5291655589c to your computer and use it in GitHub Desktop.
Save werdl/a63996e19f40ec511de1f5291655589c to your computer and use it in GitHub Desktop.
99 bottles song - 208 characters of Python 3.x
b="of beer"
t=", take one down, pass it around,"
p="bottles "+b
o=p[0:6]
l="on the wall"
x=99
k=print
while(x>2):
x-=1;k(x,p+",",x,p+",",x,p+t)
if x>2: k(x-1,p,l)
k("1",o,b,",1",o,b,t)
k("no",p,l,"!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment