We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defperson_lister(f):definner(people):# complete the functionsp=sorted(people,key=lambdax:int(x[2]))deftitle(r):return"Mr."ifr[3]=="M"else"Ms."returnmap(lambdar:f"{title(r)}{r[0]}{r[1]}", sp)returninner
Cookie support is required to access HackerRank
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 →