def multipliers(): return [(lambda y: (lambda x: x * y))(i) for i in range(4)] print [m(2) for m in multipliers()]