fork download
  1. def testFun():
  2. temp = [(lambda x, i=i : i*x) for i in range(4)]
  3. return temp
  4. for everyLambda in testFun():
  5. print(everyLambda(2))
Success #stdin #stdout 0.03s 0KB
stdin
Standard input is empty
stdout
0
2
4
6