All pastes #443826 Raw Edit

99 bottles of beer

public text v1 · immutable
·published 2007-04-17 00:55 UTC
rendered paste body
beer = 99
for i in range(1,100):

    if beer > 2:
        print beer, 'bottles of beer on the wall,', beer, 'bottles of beer.'
        beer = beer-1
        print 'Take one down and pass it around,', beer, 'bottles of beer on the wall.'
        print ''
    else:
        print '2 bottles of beer on the wall, 2 bottles of beer.'
        print 'Take one down and pass it around, 1 bottle of beer on the wall.'
        print ''
        print '1 bottle of beer on the wall, 1 bottle of beer.'
        print 'Go to the store and buy some more, 99 bottles of beer on the wall.'
        break