Skip to content

Instantly share code, notes, and snippets.

@ezaurum
Created June 1, 2014 10:48
Show Gist options
  • Save ezaurum/076f5d7af2d140f71c22 to your computer and use it in GitHub Desktop.
Save ezaurum/076f5d7af2d140f71c22 to your computer and use it in GitHub Desktop.
99 bottles of beer
while(True):
for i in range(99, 3, -1):
print("%s bottles of beer on the wall, %s bottles of beer."%(i, i))
print("Take one down and pass it around, %s bottles of beer on the wall."%(i-1))
print ("2 bottles of beer on the wall, 2 bottles of beer.\nTake one down and pass it around, 1 bottle of beer on the wall.\n1 bottle of beer on the wall, 1 bottle of beer.\nTake one down and pass it around, no more bottles of beer on the wall.\nNo more bottles of beer on the wall, no more bottles of beer.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment