Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bottle = 'bottles'
- for i in range(99,0,-1):
- firstLine = (str(i) + ' bottles of beer on the wall, ' + str(i) + ' bottles of beer.')
- secondLine = ('Take one down and pass it around, ' + str(i-1) +' bottles of beer on the wall')
- if i == 2:
- secondLine = ('Take one down and pass it around, ' + str(i-1) +' bottle of beer on the wall')
- if i ==1:
- firstLine = (str(i) + ' bottle of beer on the wall, ' + str(i) + ' bottle of beer.')
- secondLine = 'Take one down and pass it around, no more bottles of beer on the wall.'
- if i == 0:
- firstLine = 'No more bottles of beer on the wall, no more bottles of beer.'
- secondLine = 'Go to the store and buy some more, 99 bottles of beer on the wall.'
- print(firstLine + '\n' + secondLine + '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement