Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #!usr/bin/env python
  2. #bottle song
  3. num = 99
  4. while int(num) != 1:
  5. print(str(num) + " bottles of beer on the wall, " + " bottles of beer.")
  6. num -=1
  7. print("Take one down and pass it around, " + str(num) + " bottles of beer on the wall.")
  8. print(" ")
  9. else:
  10. print(str(num) + " bottle of beer on the wall, " + str(num) + "bottle of beer.\nTake one down and pass it around, no more bottles of beer on the wall.")
  11. print(" ")
  12. print("No more bottles of beer on the wall, no more bottles of beer. \nGo to the store and buy some more, 99 bottles of beer on the wall.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement