Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Lambda Functions

Anonymous functions defined inline with the lambda keyword. See Anonymous function — Wikipedia.

Syntax

lambda <parameters>: <expression>

When to use

Most useful when passing a short function as an argument — e.g. as a sort key — where defining a full named function would be unnecessary overhead.

Run

python lambda_functions.py