Question: Please use python thanks! Implement a function grandchildren (person, family) with the following specication. Input: A string containing a person's name, person, and a family
Please use python thanks!

Implement a function grandchildren (person, family) with the following specication. Input: A string containing a person's name, person, and a family tree database family as specied above. Output: A list containing the names of all of person's grandchildren that are stored in the database. If there is no information about any of person's grandchildren in the database (including if the person themselves are not in the database), the function should return an empty list. For example, grandchildren should behave as follows: >>> sorted(grandchi1dren('Downy UDrake', duck_tree)) [ 'Della Duck' , 'Donald Duck'] >>> grandchildren('Donald Duck', duck_tree) Hint: Consider how you may dene grandchildren in terms of person's children
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
