Question: Python We're going to teach Python to sing the classic song 99 Bottles of Soda (or Pop) on the Wall. - Display the following lyrics,
Python

We're going to teach Python to sing the classic song "99 Bottles of Soda (or Pop) on the Wall". - Display the following lyrics, using a while loop: "99 bottles of pop on the wall, 99 bottles of pop. Take one down, pass it around... 98 bottles of pop on the wall, 98 bottles of pop. Take one down, pass it around..." - And so on, until there are no bottles left on the wall. - Once there are no bottles remaining, display: "No more bottles of pop on the wall!" Hint: You can only "take one down" while there are more than zero bottles left on the wall. (Yes this can also be done with a for loop as well, but use a while loop)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
