#Create the REFRAIN of the song as a string that contains the format codes needed REFRAIN = ''' %d bottles of beer on the wall, %d bottles of beer, you take one down, pass it around, %d bottles of beer onthe wall! ''' #Set the number of verses to sing bottles_of_beer = 10 while bottles_of_beer > 1: print (REFRAIN % (bottles_of_beer, bottles_of_beer, bottles_of_beer-1)) bottles_of_beer -= 1 #subtract 1 from the number of bottles of beer