Question: Make the function def oldest(persons: list) that gets a tuple of the list of persons as its parameter. The function searches for and returns the

Make the function def oldest(persons: list) that gets a tuple of the list of persons as its parameter. The function searches for and returns the name of the oldest person. The person tuple first contains the person's name as a string and the second item is the person's Year of Birth. For example:
p1 = ("Mark", 1977) p2 = ("Andy", 1985) p3 = ("Tom", 1953) p4 = ("Chiara", 1997) plist = [p1, p2, p3, p4] print(oldest(persons))

Tom

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 Databases Questions!