Lambda Expressions to create Anonymous Functions in Python

Опубликовано: 09 Октябрь 2024
на канале: Python for Everyone
388
21

You have heard of lambdas (anonymous functions) and know that they are related to functions but not yet understand what they are. In this video you see how to create a lambda, the difference with regular functions and you will see typical situations where to use them.

C H A P T E R S
0:19 Lambda, anonymous functions, lambda expressions
0:40 How is an anonymous function constructed?
2:00 Sort a list of tuples with a regular function
2:40 Replace function with a lambda expression
3:00 Restrictions when using anonymous functions
3:25 Typical applications for lambda’s in Python

M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of my online courses: https://pythonforeveryone.com

L I N K S I N T H E V I D E O
multiline lambda in Python: https://www.artima.com/weblogs/viewpo...
functional programming in Python: https://developers.slashdot.org/story...

#lambda #programming #python