Question: In python, Define a function called sort _ people ( people ) that takes in a list like this: [ [ Fen ,

In python, Define a function called sort_people(people) that takes in a list like this:
[["Fen",24],["Bart",30],["Oscar",4],["Homer",50]]
and returns a list with the people sorted by age in ascending order like this:
[["Oscar",4],["Fen",24],["Bart",30],["Homer",50]]

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!