Lambda Functions

Python lambdas are anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions.

sum = lambda x, y: x + y
sum(1, 2)

# equivalent to:
def sum(x, y):
   return x + y

References