Question: PYHTON: Your assignment is to write a program that sings, i.e. prints, the road trip song, This Old Man, for which the first verse is
PYHTON:
Your assignment is to write a program that sings, i.e. prints, the road trip song, "This Old Man," for which the first verse is
This old man, he played 1. He played knick-knack on my thumb. With a knick-knack, paddy-whack, Give your dog a bone. This old man came rolling home.
Each subsequent verse is the same, except for the number and the rhyming word at the end of the second line, which gets replaced as follows:
| 2shoe | 5hive | 8pate |
| 3knee | 6sticks | 9spine |
| 4door | 7heaven | 10shin |
Write a program that takes in the n number of verses and prints all n verses. You should also validate the input to ensure that you get a number between 1 and 10.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
