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
clear and concise explanation, you probably don't know how many concepts you have clearly explained within 8min. Thank you!
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.
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?
A 5:10 is that concatenation to create the key?
With lambda all other functions also revised nice video..❤
Difference between
lambda arguments: expression
And
lambda parameters:expression
Watch on 2x and do it in 4
It has been a lovely recap, thanks a lot👍
Thanks; helped my understanding so much!
Is that lambda calculus in the thumbnail? Props for doing your research
Gotta love this guy!
Excellent video
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.
i like this bro thanks
Do more projects based courses!!
Why did he print the sorted list as list() and not directly?
"In this video you will learn about the lambda function in just a few minutes"
Aight bet?
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.
I'm familiar with Lisp Lambda functions.
Plz make next video on
:how to make our robot talk and listen by coding
Well' you are best teacher in world
quick question: why on earth will i want to use this function if i can write out normal functions?
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!?
Wait, so variables in Python are just functions?
1st view on the video
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?
UA-cam Template 😢
Content is too "flashy". Confusing and annoying to watch.
Lambda functions are a trash implementation of anonymous functions - they are only lambda expressions in Python.
Bro fell off
Thanks!