What are lambda functions in Python, and when would you use them?
Lambda functions are anonymous functions created using the lambda
keyword. They are typically used for short, simple operations. For example:
multiply = lambda x, y: x * y result = multiply(3, 4)