You are viewing a single comment's thread. Return to all comments →
students = sorted(students, key=lambda x: x[1])
Can someone please explain me how does this line work? Bit confused on the lambda x: x[1] thing!
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
Can someone please explain me how does this line work? Bit confused on the lambda x: x[1] thing!