open_in_new
content_copy
def max_by(lst, fn): return max(map(fn, lst))