I have been trying to generate a list of lambda functions in python using list comprehension. but it didn't work,
for example
fl=[lambda x: x**i for i in range(5)]
i have check the other question, it basically generate the same function based on the reference of i.
so I also tried partial.
from functools import partial
fl=[partial(lambda x: x**i) for i in range(5)]
but it didn't work too. any help will be appreciated. cheers~
fl[0](2) = fl[1](2) = 16