I am a python newbie trying to achieve the following:
I have a list of lists:
lst = [[567,345,234],[253,465,756, 2345],[333,777,111, 555]]
There actually is a way you can use multiple statements in lambda. Here's my solution:
lst = [[567,345,234],[253,465,756, 2345],[333,777,111, 555]] x = lambda l: exec("l.sort(); return l[1]") map(x, lst)