In: Computer Science
Write a program, using functions, to print the lyrics of the song “Old MacDonald.” Your program should print the lyrics for five different animals, similar to the example verse below: Old MacDonald had a farm, Ee-igh, Ee-igh, Oh! And on that farm he had a cow, Ee-igh, Ee-igh, Oh! With a moo, moo here and a moo, moo there. Here a moo, there a moo, everywhere a moo, moo. Old MacDonald had a farm, Ee-igh, Ee-igh, Oh! Include a function that returns multiple values
in python :)


def song(animals, sounds):
result = []
for i in range(len(animals)):
line = '''Old MacDonald had a farm, Ee-igh, Ee-igh, Oh!
And on that farm he had a ''' + animals[i] + ''', Ee-igh, Ee-igh,
Oh!
With a ''' + sounds[i] + ''', ''' + sounds[i] + ''' here and a '''
+ sounds[i] + ''', ''' + sounds[i] + ''' there.
Here a ''' + sounds[i] + ''', there a ''' + sounds[i] + ''',
everywhere a ''' + sounds[i] + ''', ''' + sounds[i] + '''.
Old MacDonald had a farm, Ee-igh, Ee-igh, Oh!\n'''
result.append(line)
return result
result = song(["cow", "dog", "cat", "bee", "duck"], ["moo",
"bow", "meow", "buzz", "quack"])
for one in result:
print(one)