Home » PythonPi Bonus Lessons » PythonPi Bonus: 99 Bottles Of Beer

PythonPi Bonus: 99 Bottles Of Beer

For this program, you will need to create a loop to create the popular song.

99 bottles of beer on the wall, 99 bottles of beer.
Take one down, pass it around. 98 bottles of beer on the wall.

Consider how to insert an int (number variable) to a string and how to reduce the value of the bottles of beer whilst in the loop. This should be a fairly simple exercise and is a good demonstration of while loops.


Leave a comment

Your email address will not be published. Required fields are marked *