Python is not based on lambda calculus; when you pose the question this way, it doesn't make much sense. The lambda operator is just a practical function to create an anonymous inplace function:
>>> list( map(lambda x: x**2, [1, 2, 3, 4, 5]) ) [1, 4, 9, 16, 25] # the same as: >>> def sq(x): ... return x**2 ... >>> list( map(sq, [1, 2, 3, 4, 5]) ) [1, 4, 9, 16, 25]
It is named that way because it was borrowed from functional languages, but not for computations with combinatorial logic.
source share