# Example: write a program that prints # a list of animals list_of_animals = ["dog", "cat", "fish"] for animal in list_of_animals: print(animal) # Example: write a program that prints # each letter of a string "Python" for letter in "Python": print(letter) # write a function that takes # a list of animals and a list of sounds. # Use the given animals and sounds and # print the "Old MacDonald had a farm" song # # You may assume that the sizes of both lists are the same # (that is, the number of animals and sounds given are the same) # # If you're happy and you know it, clap your hands! # If you're happy and you know it, clap your hands! # If you're happy and you know it, and you really want to show it; # If you're happy and you know it, clap your hands! def happy(to_dos): for do in to_dos: print("If you're happy and you know it,", do) print("If you're happy and you know it,", do) print("If you're happy and you know it, and you really want to show it") print("If you're happy and you know it,", do) print() what_to_dos = ["clap your hands", "say 'Hooray'", "snap your fingers"] happy(what_to_dos)