I have a list of lambda functions I want to evaluate in order. I\'m not sure why, but only the last function gets evaluated. Example below:
>>> de
The lambda is just looking up the global value of 'i'.
Try the following instead:
for i in range(0,5): lst.append(lambda x, z=i: f(x,z))