Lambda

A Lambda function is a simple, lightweight anonymous function definition not using normal function syntax.

Python Example

# Define a lambda function to calculate the square of a number.
square = lambda x: x * x

# Use the lambda function.
result = square(5)
print(result)  # Output will be 25