• + 0 comments
    def person_lister(f):
        def inner(people):
            # complete the function
            sp = sorted(people, key=lambda x: int(x[2]))
            def title(r):
                return "Mr." if r[3]=="M" else "Ms."
            return map(lambda r: f"{title(r)} {r[0]} {r[1]}", sp)
        return inner