Question: Write a function called cat names(di) that takes a dictionary as an argument. The keys of the dictionary will be people's names and the values

Write a function called cat names(di) that takes a dictionary as an argument. The keys of the dictionary will be people's names and the values of the dictionary will be dictionaries that contain the names of each cat the person owns along with the cats age. For example, {"Mike" : {"Lyra" : 5, " George" : 21}, "April" : {}, "Sue" : {"Bob" : 12}} 1The function should return a list of all the cats' names. For the dictionary above, the function should return ["Lyra", "George", "Bob" ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!