Advertisement
browncrown

Lyrics of the song 99 Bottles of Beer project.

Oct 23rd, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.78 KB | None | 0 0
  1. bottle = 'bottles'
  2. for i in range(99,0,-1):
  3.     firstLine = (str(i) + ' bottles of beer on the wall, ' + str(i) + ' bottles of beer.')
  4.     secondLine = ('Take one down and pass it around, ' + str(i-1)  +' bottles of beer on the wall')
  5.     if i == 2:
  6.         secondLine = ('Take one down and pass it around, ' + str(i-1)  +' bottle of beer on the wall')
  7.     if i ==1:
  8.         firstLine = (str(i) + ' bottle of beer on the wall, ' + str(i) + ' bottle of beer.')
  9.         secondLine = 'Take one down and pass it around, no more bottles of beer on the wall.'
  10.     if i == 0:
  11.         firstLine = 'No more bottles of beer on the wall, no more bottles of beer.'
  12.         secondLine = 'Go to the store and buy some more, 99 bottles of beer on the wall.'
  13.     print(firstLine + '\n' + secondLine + '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement