Python Lambda Functions Explained

preview_player
Показать описание
In this video, you will learn Lambda functions within Python in just a few minutes. While they may look seemingly complicated, the Lambda function is actually fairly simple as it's just a one line anonymous function and throughout the next 8 minutes, I will show you exactly how they work and how to master them.

⏳ Timestamps ⏳
00:00 | Lambda Functions Explained
02:09 | Map
03:21 | Filter
04:09 | Sort
05:14 | Advanced Examples

Hashtags
#python #lambda #coding
Рекомендации по теме
Комментарии
Автор

This guy was my motivation when I got into programming 2 years ago. Thank you! Lamda function and JavaScript's map function were so complicated I remember. Thanks for clarifying.

TheHeroIsRisingUp
Автор

bro you earned a subscriber by just passing two parameter in lambda

PraveenC-kl
Автор

I believe "lambda" functions were first introduced in the LISP language.
They are used (and in some cases required) in setting up certain "events" in TkInter.

johnnytoobad
Автор

I was just thinking about learning more about the lambda function and you go and make this video! That's a like before even watching it.

facilvenir
Автор

A 5:10 is that concatenation to create the key?

Makebuildmodify
Автор

thanks tim for covering it, well explained with possible usecases, need more such advance python wizardry vids, :)

jason
Автор

Thank you.
These are advanced subjects, but never really explained step by step as you do, so it's actually really simple.
I think I'm refactoring a lot of @static methods now that I know how to remove them.

JorgeEscobarMX
Автор

With lambda all other functions also revised nice video..❤

augustinradjou
Автор

It has been a lovely recap, thanks a lot👍

softwareengineer
Автор

Is that lambda calculus in the thumbnail? Props for doing your research

Betadesk
Автор

Thanks; helped my understanding so much!

cvought
Автор

Re-watching this today. I need to create multi-line lambda expressions to replace/refactor functions that exists only to be passed as arguments to other funtions/methods.

JorgeEscobarMX
Автор

Why did he print the sorted list as list() and not directly?

Qbiccx
Автор

Why are lambda functions so hard to get my head around? I think that I understand, then I don't. Maybe it's overthinking?

legojenn
Автор

I'm familiar with Lisp Lambda functions.

randylplampin
Автор

Plz make next video on
:how to make our robot talk and listen by coding

Well' you are best teacher in world

Craxy
Автор

"In this video you will learn about the lambda function in just a few minutes"
Aight bet?

liubomirberberoff
Автор

You missed a major "feature" of lambda that allows evil code: it has global scope:
>>> f = lambda: x * n
>>>f(3)
NameError
>>>n = 10
>>>f(3)
30
>>>n = 'wtf'
>>>f(3)
'wtfwtfwtf'

WTF!?

DrDeuteron
Автор

It’s a shame they don’t just have multi line lambdas or an explicit return

MLGJuggernautgaming
Автор

Lambda functions are a trash implementation of anonymous functions - they are only lambda expressions in Python.

trevoro.