Enter your name and EID here
This homework is due on Mar. 26, 2019 at 4:00pm. Please submit as a PDF file on Canvas. Before submission, please re-run all cells by clicking "Kernel" and selecting "Restart & Run All."
Problem 1 (5 pts): Create a list with the names of your favorite animals. Your list should contain at least 5 animals. Then, complete the following steps using python. Each step should be completed in a different cell and your results should be printed with print()
.
len()
.Problem 2 (5 pts): Now imagine that you have gone to the zoo to see your favorite animals listed in Problem 1. Create a dictionary that contains the names of the animals as keys and counts for each animal as the values. (For example, if there are 3 giraffes at the zoo, the key would be "giraffe" and the value would be 3.) The counts should just be made-up counts. Then, complete the following steps using python. Each step should be completed in a different cell and your results should be printed with print()
.