Advertisement
biswasrohit20

g

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