[Solved] Use a lambda function to find the maximum of a list in python [closed]
You can wrap your lambda using reduce: >>> from functools import reduce >>> >>> lst = [22, 36, 47, 2, 13] >>> reduce(lambda x, y: x if (x > y) else y, lst) 47 solved Use a lambda function to find the maximum of a list in python [closed]