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.
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.
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.
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.
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 could just as easily not be, no? I guess it’s a weak argument. Python has dynamic variables so you can pass a function anywhere. But most languages have true lambda functions, why can’t Python?
To learn programming and Python - check out Datacamp!
💻 Learn Python - datacamp.pxf.io/daN0E3
💻 Learn Programming - datacamp.pxf.io/MmGxWY
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.
bro you earned a subscriber by just passing two parameter in lambda
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.
Watch on 2x and do it in 4
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.
thanks tim for covering it, well explained with possible usecases, need more such advance python wizardry vids, :)
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.
I don't understand the line btw lambda and static methods?
Is that lambda calculus in the thumbnail? Props for doing your research
A 5:10 is that concatenation to create the key?
With lambda all other functions also revised nice video..❤
It has been a lovely recap, thanks a lot👍
Thanks; helped my understanding so much!
i like this bro thanks
Gotta love this guy!
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.
Why are lambda functions so hard to get my head around? I think that I understand, then I don't. Maybe it's overthinking?
Overthinking:
lambda x: x**2
is
"f(x) = x**2"
wherever it appears.
Do more projects based courses!!
Excellent video
Plz make next video on
:how to make our robot talk and listen by coding
Well' you are best teacher in world
Why did he print the sorted list as list() and not directly?
I'm familiar with Lisp Lambda functions.
"In this video you will learn about the lambda function in just a few minutes"
Aight bet?
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!?
It’s a shame they don’t just have multi line lambdas or an explicit return
but it's an "in-line" function.
@@DrDeuteron it could just as easily not be, no? I guess it’s a weak argument. Python has dynamic variables so you can pass a function anywhere. But most languages have true lambda functions, why can’t Python?
RUclips Template 😢
Lambda functions are a trash implementation of anonymous functions - they are only lambda expressions in Python.
1st view on the video
Bro fell off
Thanks!