# write a function that takes # a dictionary of animals and sounds; for example, # {'pig': 'oink', 'horse':'neigh'} # # Use the given animals and sounds and # print the "Old MacDonald had a farm" song # # (https://www.youtube.com/watch?v=LIWbUjHZFTw) # # Old MacDonald had a farm # E I E I O # And on his farm he had a #animal# # E I E I O # With a #sound# #sound# here # And a #sound# #sound# there # Here a #sound#, there a #sound# # Everywhere a #sound# #sound# # Old MacDonald had a farm # E I E I O def macDonald(animal_dict): animals = {"pig": "oink", "horse": "neigh", "chicken": "bawk", \ "dino": "ooo", "cat": "meow"} macDonald(animals)