Write a function to print the lyrics of our own version of the song Old MacDonald. One
Question:
Write a function to print the lyrics of our own version of the song “Old MacDonald”. One Stanza of the song is given below. As you know there are two more stanzas with a different animal and sound (instead of the cow and the moo). Your python program should print the lyrics for three different animals and their respective sounds using one function called three times, similar to the example verse below:
Write a function that takes two parameters ( string1, string2) the animal name and the sound it makes to write one stanza. Then this function should be called from main three times to write the whole lyrics. Here you call the function thrice with three different animals and their respective sounds and do not ask the user to input. The output will be the lyrics of the song with three stanzas. Please note the “" for the sound which should be in the output.
Old CSIS2101 had a function, 1-0-1-0-1
And on his function he had a cow, 1-0-1-0-1
With a "moo-moo" here and a "moo-moo" there
Here a "moo" there a "moo"
Everywhere a "moo-moo"
Old CSIS2101 had a function, 1-0-1-0-1
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke