You should not be using lambda in this case .for x in [2, 3]: . funcs = [x**ctr for ctr in range( 5 )] . for p in range(5): . print x, funcs[p] . print