I'm attempting to write a Python program that will print out the lyrics of 99 Bottles of Beer in chunks, which I've gotten to work. However, I need the last line to say "1 bottle of beer" as opposed to "1 bottles of beer".
I wrapped my code in an if statement, but it appears the if statement is getting ignored. What am I doing wrong?
verse = '''
{some} bottles of beer on the wall
{some} bottles of beer
Take one down, pass it around
{less} bottles of beer on the wall
'''
verse2 = '''
{some} bottles of beer on the wall
{some} bottles of beer
Take one down, pass it around
1 bottle of beer on the wall
'''
for bottles in range(99 , 1, -1):
if bottles >= 2:
print(verse.format(some = bottles, less = bottles - 1))
else:
print(verse2.format(some = bottles))