Question: Python must work for all cases not just test cases Function name: animal_locator Parameters: A dictionary containing zoo locations as keys and their values being
Function name: animal_locator Parameters: A dictionary containing zoo locations as keys and their values being a list of tuples with the specific animal and the population of that specific animal Returns: a dictionary containing the animals as keys and their values being a tuple with their first element being an ordered list of all the zoo locations the animal can be found in (from greatest to least) and the second element being an integer of the total population of that specific animal. Assume valid arguments will always be passed in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
