Advertisement
biswasrohit20

f

Mar 18th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. num = int(input("How many bottles to start with?\n"))
  2. number = num
  3. for i in range(num):
  4. if number == 1:
  5. print('one green bottle, hanging on the wall')
  6. print('one green bottle hanging on the wall')
  7. print('and if one green bottle, should accidentally fall')
  8. print('there\'d be no green bottles, hanging on the wall')
  9. elif number == 2:
  10. print('two green bottles, hanging on the wall')
  11. print('two green bottles hanging on the wall')
  12. print('and if one green bottle, should accidentally fall')
  13. print('there\'d be no green bottles, hanging on the wall')
  14. elif number == 3:
  15. print('three green bottles, hanging on the wall')
  16. print('three green bottles hanging on the wall')
  17. print('and if one green bottle, should accidentally fall')
  18. print('there\'d be two green bottles, hanging on the wall')
  19. elif number == 4:
  20. print('four green bottles, hanging on the wall')
  21. print('four green bottles hanging on the wall')
  22. print('and if one green bottle, should accidentally fall')
  23. print('there\'d be three green bottles, hanging on the wall')
  24. elif number == 5:
  25. print('five green bottles, hanging on the wall')
  26. print('five green bottles hanging on the wall')
  27. print('and if one green bottle, should accidentally fall')
  28. print('there\'d be four green bottles, hanging on the wall')
  29. elif number == 6:
  30. print('six green bottles, hanging on the wall')
  31. print('six green bottles hanging on the wall')
  32. print('and if one green bottle, should accidentally fall')
  33. print('there\'d be five green bottles, hanging on the wall')
  34. elif number == 7:
  35. print('seven green bottles, hanging on the wall')
  36. print('seven green bottles hanging on the wall')
  37. print('and if one green bottle, should accidentally fall')
  38. print('there\'d be six green bottles, hanging on the wall')
  39. elif number == 8:
  40. print('eight green bottles, hanging on the wall')
  41. print('eight green bottles hanging on the wall')
  42. print('and if one green bottle, should accidentally fall')
  43. print('there\'d be seven green bottles, hanging on the wall')
  44. elif number == 9:
  45. print('nine green bottles, hanging on the wall')
  46. print('nine green bottles hanging on the wall')
  47. print('and if one green bottle, should accidentally fall')
  48. print('there\'d be eight green bottles, hanging on the wall')
  49. elif number == 10:
  50. print('ten green bottles, hanging on the wall')
  51. print('ten green bottles hanging on the wall')
  52. print('and if one green bottle, should accidentally fall')
  53. print('there\'d be nine green bottles, hanging on the wall')
  54. number = number - 1
  55. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement