# write a function that takes a string containing # animals and sounds, where each pair of animals and sounds # are separated by a comma (,) # 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_str): animals = "pig:oink,horse:neigh,chicken:bawk" + \ "dino:ooo,cat:meow" macDonald(animals)