For the rest of this course, you’ll mostly see the term lambda function. The following terms may be used interchangeably depending on the programming language type and culture:
- Anonymous functions
- Lambda functions
- Lambda expressions
- Lambda abstractions
- Lambda form
- Function literals
Taken literally, an anonymous function is a function without a name. In Python, an anonymous function is created with the lambda
keyword. More loosely, it may or not be assigned a name.
Jordan Bell on Aug. 27, 2024
Clarification: a standard function with no explicit
return
statement returnsNone
.We can also make a lambda function return
None
: