You are viewing a single comment's thread. Return to all comments →
def inner(people): sorted_people = sorted(people, key=lambda x: int(x[2])) formatted_names = [f(person) for person in sorted_people] return formatted_names
return inner
Seems like cookies are disabled on this browser, please enable them to open this website
Decorators 2 - Name Directory
You are viewing a single comment's thread. Return to all comments →
def inner(people): sorted_people = sorted(people, key=lambda x: int(x[2])) formatted_names = [f(person) for person in sorted_people] return formatted_names