Created
April 10, 2018 06:27
-
-
Save calthoff/9704be3ab4e5230dd329344beeb77305 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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