Skip to content

Glossary: Python Beyond the Basics

lambda

Also written: lambdas

A small, nameless, one-line function holding a single expression, such as `lambda order: order[1]`. Handy as a sort key.

Where the book teaches it

Related terms

key function