Object-Oriented Programming · Square · Easy
The input is a list of tuples, each naming a child followed by that child's two parents. First, output one sentence for every tuple describing the family relationship it records. Next, build a relationship checker that, given two people, reports whether the first person is a child of the second. Follow-ups Extend the checker so it can also answer whether one person is a parent of another. Extend it to grandparent relationships. Extend it to grandchild relationships.…