Question: Create a Python program that uses a loop to print the lyrics for Five Little Monkeys Jumping on the Bed. However, change it, so that

Create a Python program that uses a loop to print the lyrics for "Five Little Monkeys Jumping on the Bed."

However, change it, so that the user can enter the number of monkeys to start with.

Use a for loop to start at the number input by the uses and work backwards through "no more monkeys jumping on the bed."

You MUST use a for loop and a variable in your print statements. Your output should resemble the following:

How many monkeys start jumping on the bed? 8 8 little monkeys

How many monkeys start jumping on the bed? 8 8 little monkeys jumping on the bed, 1 fell off and bumped his head, momma called the doctor and the doctor said, no more monkeys jumping on the bed. 7 little monkeys jumping on the bed, 1 fell off and bumped his head, momma called the doctor and the doctor said, no more monkeys jumping on the bed. 6 little monkeys jumping on the bed, 1 fell off and bumped his head, momma called the doctor and the doctor said, no more monkeys jumping on the bed. 5 little monkeys jumping on the bed, 1 fell off and bumped his head, momma called the doctor and the doctor said, no more monkeys jumping on the bed. 4 little monkeys jumping on the bed, 1 fell off and bumped his head, momma called the doctor and the doctor said, no more monkeys jumping on the bed.

Step by Step Solution

3.33 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the program that will take the number of monkeys as an input and print the lyr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!