Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created April 10, 2018 06:27
Show Gist options
  • Select an option

  • Save calthoff/9704be3ab4e5230dd329344beeb77305 to your computer and use it in GitHub Desktop.

Select an option

Save calthoff/9704be3ab4e5230dd329344beeb77305 to your computer and use it in GitHub Desktop.
def bottles_of_beer(bob):
if bob < 1:
print("""No more bottles of beer on the wall. No more
bottles of beer.""")
return
tmp = bob
bob -= 1
print("""{} bottles of beer on the wall. {} bottles
of beer. Take one down, pass it around,
{} bottles of beer on the wall.""".format(tmp, tmp, bob))
bottles_of_beer(bob)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment