MemotivaFunctions and arguments

What is a lambda function?

Functions and arguments

Audio flashcard · 0:15

Nortren·

What is a lambda function?

0:15

A lambda is an anonymous function defined with the lambda keyword. It can have any number of parameters but only a single expression as its body, and it returns the value of that expression. Lambdas are useful as small inline callables, especially as keys to sort or as arguments to map and filter.
docs.python.org