← Winnitude! Search  ·  Reader Mode (996 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
REAL PYTHON · Real Python · 40 LINKS

Python Lambda Functions (Summary) - Real Python

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

Unlock This Lesson

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)

Using Python Lambda Functions Darren Jones 00:37 Recommended Tutorial Course Slides (.pdf) Ask Mentor AI Ask a Question Liked it (thumbs up) Disliked it (thumbs down)

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 .

Download

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!

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

Unlock This Lesson

Already a member? Sign-In

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

Unlock This Lesson

Already a member? Sign-In

Language

00:01 Well done! You've completed this course on using lambda functions. You found out what a lambda function is. You found out where lambda functions are useful.

00:12 You've created some first lambda functions of your own.

00:16 You've seen how lambda functions are used in conjunction with methods such as .sort() and functions such as filter(), map(), and reduce().

00:26 And you've seen how to test lambda functions. I hope you found this course useful and we'll see you again soon at realpython.com.

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.

cottonbytes on Aug. 9, 2020

Nice! Well explained! Thanks!

Shuai on May 6, 2021

Thanks for the great course!

Become a Member to join the conversation.