Created
April 21, 2023 13:19
-
-
Save werdl/a63996e19f40ec511de1f5291655589c to your computer and use it in GitHub Desktop.
99 bottles song - 208 characters of Python 3.x
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
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