0
The question is this: ;
Consider that a person has the format Tuplo - (name, year of birth, city).
Create a senior function that receives a list of people and returns the oldest person in the group.
I’m lost in this code someone can help me ?
I have the following lists;
pessoa=[("pedro",1999,"porto"),("pedro2",2020,"feira"),("pedro3",2002,"sjm")]
velho=[("pedr22o",2000,"porto22")]
for i in pessoa:
for x in velho:
if i[1] < x[1]:
velho = i
print(velho)