Advertisement
biswasrohit20

b

Mar 18th, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # bronze
  2. num = int(input("How many bottles to start with?\n"))
  3. number = num
  4. for i in range(num):
  5. print(str(number)+' green bottles, hanging on the wall')
  6. print(str(number)+' green bottles hanging on the wall')
  7. print(f'and if one green bottle, should accidentally fall')
  8. number = number - 1
  9. print('there\'d be '+str(number)+' green bottles, hanging on the wall')
  10. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement