Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # gold
- num = int(input("How many bottles to start with?\n"))
- number = num
- for i in range(num):
- if number == 1:
- print('one green bottle, hanging on the wall')
- print('one green bottle hanging on the wall')
- elif number == 2:
- print('two green bottles, hanging on the wall')
- print('two green bottles hanging on the wall')
- elif number == 3:
- print('three green bottles, hanging on the wall')
- print('three green bottles hanging on the wall')
- elif number == 4:
- print('four green bottles, hanging on the wall')
- print('four green bottles hanging on the wall')
- elif number == 5:
- print('five green bottles, hanging on the wall')
- print('five green bottles hanging on the wall')
- elif number == 6:
- print('six green bottles, hanging on the wall')
- print('six green bottles hanging on the wall')
- elif number == 7:
- print('seven green bottles, hanging on the wall')
- print('seven green bottles hanging on the wall')
- elif number == 8:
- print('eight green bottles, hanging on the wall')
- print('eight green bottles hanging on the wall')
- elif number == 9:
- print('nine green bottles, hanging on the wall')
- print('nine green bottles hanging on the wall')
- elif number == 10:
- print('ten green bottles, hanging on the wall')
- print('ten green bottles hanging on the wall')
- print('and if one green bottle, should accidentally fall')
- number = number - 1
- if number == 1:
- print('there\'d be one green bottle, hanging on the wall')
- elif number == 2:
- print('there\'d be two green bottles, hanging on the wall')
- elif number == 3:
- print('there\'d be three green bottles, hanging on the wall')
- elif number == 4:
- print('there\'d be four green bottles, hanging on the wall')
- elif number == 5:
- print('there\'d be five green bottles, hanging on the wall')
- elif number == 6:
- print('there\'d be six green bottles, hanging on the wall')
- elif number == 7:
- print('there\'d be seven green bottles, hanging on the wall')
- elif number == 8:
- print('there\'d be eight green bottles, hanging on the wall')
- elif number == 9:
- print('there\'d be nine green bottles, hanging on the wall')
- elif number == 10:
- print('there\'d be ten green bottles, hanging on the wall')
- elif number == 0:
- print('there\'d be no green bottles, hanging on the wall')
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement