filmov
tv
Lambda Expressions & Anonymous Functions || Python Tutorial || Learn Python Programming

Показать описание
Lambda expressions - also known as “anonymous functions” - allow you to create and use a function in a single line. They are useful when you need a short function that you will only use once. For example, when using the map, filter and sort methods.
A lambda function can take any number of arguments, but can only have one expression.
A lambda function can take any number of arguments, but can only have one expression.