Skip to content

Chapter 22: Lambda Functions

Lambda functions are anonymous functions that are defined using the lambda keyword.

Example

Python
add = lambda x, y: x + y
print(add(2, 3))  # Outputs: 5