In generating a list as below, the lambda function is declared outside the squared brackets, then applied for each i,
>>> g = lambda x: x*10
>>> [g(i) for i in range(10,21)]
[100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200]
Is it possible (and how) to declare the lambda function within the list and call it ?
[(lambda x: x*10)(i) for i in range(10,21)]. Why do you feel you want to do this?