def max_in_list(lst):
    return reduce(lambda x, y: x if x > y else y, lst)


print(max_in_list([1, 2, 3, 4, 5, 6, 10, 3]))

befd44b26ea95c49e54952ef96d89e23aa8d3798
<mask token>

def max_in_list(lst):
    return reduce(lambda x, y: x if x > y else y, lst)


<mask token>

def max_in_list(lst):
    return reduce(lambda x, y: x if x > y else y, lst)


print(max_in_list([1, 2, 3, 4, 5, 6, 10, 3]))
