Lambda Functions

Lambda functions allow short, anonymous functions.

Snippet:

square = lambda x: x ** 2\nprint(square(5))

Example:

add = lambda a, b: a + b\nprint(add(3, 7))