Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python -tt
- for a in range(99, 0, -1):
- if a > 1:
- print a, "bottles of beer on the wall,", a, "bottles of beer."
- if a > 2:
- b = str(a - 1) + " bottles of beer on the wall."
- else:
- b = "1 bottle of beer on the wall."
- elif a == 1:
- print "1 bottle of beer on the wall, 1 bottle of beer."
- b = "no more beer on the wall!"
- print "take one down, pass it around,", b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement