Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Python Lambda Functions: Summary

Now that you’ve completed this step-by-step course, you know how to use Python lambda functions! You are now able to do all of the following:

  • Write Python lambdas and use anonymous functions
  • Choose wisely between lambdas or normal Python functions
  • Avoid excessive use of lambdas
  • Use lambdas with higher-order functions or Python key functions

Python lambdas are like salt. A pinch in your spam, ham, and eggs will enhance the flavors, but too much will spoil the dish. If you have a penchant for mathematics, you may have some fun exploring the fascinating world of lambda calculus.


Course Slides (.pdf)

218.0 KB

Take the Quiz: Test your knowledge with our interactive “Python Lambda Functions” quiz. You’ll receive a score upon completion to help you track your learning progress:

Interactive Quiz

Python Lambda Functions

Python lambdas are little, anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions. Test your understanding on how you can use them better!

Avatar image for john09

john09 on Aug. 28, 2019

Very nice. Have seen “lambda” keyword and used it a little, not knowing exactly what’s going on. Great explanation.

Avatar image for k0ng0

k0ng0 on Aug. 29, 2019

Good intro to lambdas. keep them coming.

Avatar image for Najmeh

Najmeh on Sept. 1, 2019

Thanks a lot.

Avatar image for Paul

Paul on Sept. 2, 2019

Why use map or filter with the availability of comprehensions?

Avatar image for Mallesham Yamulla

Mallesham Yamulla on Sept. 2, 2019

Many thanks for the tutorial, and I’m highly recommending this tutorials to the audience who would like brush up their knowledge on writing lambda function.

Avatar image for Sergio

Sergio on Sept. 2, 2019

Nice intro to lambdas. Thanks for sharing it!

Avatar image for dobrycheva

dobrycheva on Sept. 24, 2019

thank you! :)

Avatar image for Pakorn

Pakorn on Jan. 15, 2020

Great tutorial, Thanks!

Avatar image for Shubhro

Shubhro on Jan. 27, 2020

Great tutorial on lambdas!

Avatar image for Ariadna

Ariadna on April 26, 2020

Great course!! Very clear!!

Avatar image for Mark

Mark on June 22, 2020

Thanks, Great material

Avatar image for sistersolstice

sistersolstice on July 11, 2020

Wonderful! This provided so much clarity to lambda. I haven’t used it much but will start now since I know how it works. Thanks.

Avatar image for a5zima

a5zima on July 20, 2020

This is a great idea to combine sort/map/filer/reduce with the lambda explanation! Finally I understand the concept and power of a lambda function. Thank you.

Avatar image for cottonbytes

cottonbytes on Aug. 9, 2020

Nice! Well explained! Thanks!

Avatar image for Shuai

Shuai on May 6, 2021

Thanks for the great course!

Become a Member to join the conversation.