Advertisement
Guest User

fdsaf

a guest
Apr 28th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/usr/bin/python -tt
  2.  
  3. for a in range(99, 0, -1):
  4. if a > 1:
  5. print a, "bottles of beer on the wall,", a, "bottles of beer."
  6. if a > 2:
  7. b = str(a - 1) + " bottles of beer on the wall."
  8. else:
  9. b = "1 bottle of beer on the wall."
  10. elif a == 1:
  11. print "1 bottle of beer on the wall, 1 bottle of beer."
  12. b = "no more beer on the wall!"
  13. print "take one down, pass it around,", b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement