News for hackers. Stuff that matters.
Re:The 2,500 year old history of why Python’s all([]) return... by rcar on Wednesday March 18, 2020 @12:18PM (#22618269)
min and max can also be comparing one part of a more complex object:

    In [1]: l = [(19, "John"), (19, "Jack"), (20, "Jim")]

    In [2]: min(l, key=lambda x: x[0])
    Out[2]: (19, 'John')

There are no comments on this comment yet.