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

Unlock This Lesson

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

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Python Lambda Functions: Summary

Give Feedback

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.

Comments & Discussion

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.

k0ng0 on Aug. 29, 2019

Good intro to lambdas. keep them coming.

Najmeh on Sept. 1, 2019

Thanks a lot.

Paul on Sept. 2, 2019

Why use map or filter with the availability of comprehensions?

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.

Sergio on Sept. 2, 2019

Nice intro to lambdas. Thanks for sharing it!

dobrycheva on Sept. 24, 2019

thank you! :)

Pakorn on Jan. 15, 2020

Great tutorial, Thanks!

Shubhro on Jan. 27, 2020

Great tutorial on lambdas!

Ariadna on April 26, 2020

Great course!! Very clear!!

Mark on June 22, 2020

Thanks, Great material

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.

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.

Become a Member to join the conversation.