Python Lambda Functions Explained

  Рет қаралды 41,056

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 40
@TechWithTim
@TechWithTim 2 ай бұрын
To learn programming and Python - check out Datacamp! 💻 Learn Python - datacamp.pxf.io/daN0E3 💻 Learn Programming - datacamp.pxf.io/MmGxWY
@TheHeroIsRisingUp
@TheHeroIsRisingUp 5 ай бұрын
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.
@PraveenC-k3l
@PraveenC-k3l 4 ай бұрын
bro you earned a subscriber by just passing two parameter in lambda
@TheLostEngineer-xb8iy
@TheLostEngineer-xb8iy Ай бұрын
clear and concise explanation, you probably don't know how many concepts you have clearly explained within 8min. Thank you!
@MakeDataUseful
@MakeDataUseful 5 ай бұрын
Watch on 2x and do it in 4
@johnnytoobad7785
@johnnytoobad7785 5 ай бұрын
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.
@youvin4907
@youvin4907 3 күн бұрын
Difference between lambda arguments: expression And lambda parameters:expression
@JorgeEscobarMX
@JorgeEscobarMX 5 ай бұрын
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.
@DrDeuteron
@DrDeuteron 4 ай бұрын
I don't understand the line btw lambda and static methods?
@Makebuildmodify
@Makebuildmodify 5 ай бұрын
A 5:10 is that concatenation to create the key?
@facilvenir
@facilvenir 5 ай бұрын
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.
@shivams417
@shivams417 4 ай бұрын
thanks tim for covering it, well explained with possible usecases, need more such advance python wizardry vids, :)
@augustinradjou3909
@augustinradjou3909 5 ай бұрын
With lambda all other functions also revised nice video..❤
@Betadesk
@Betadesk 5 ай бұрын
Is that lambda calculus in the thumbnail? Props for doing your research
@softwareengineer8923
@softwareengineer8923 5 ай бұрын
It has been a lovely recap, thanks a lot👍
@JorgeEscobarMX
@JorgeEscobarMX 4 ай бұрын
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.
@cvought1
@cvought1 5 ай бұрын
Thanks; helped my understanding so much!
@icenreyes
@icenreyes 5 ай бұрын
Gotta love this guy!
@mintz347
@mintz347 5 ай бұрын
Do more projects based courses!!
@dominiquecoladon8343
@dominiquecoladon8343 5 ай бұрын
Excellent video
@Artemis0307
@Artemis0307 5 ай бұрын
i like this bro thanks
@Craxy65
@Craxy65 4 ай бұрын
Plz make next video on :how to make our robot talk and listen by coding Well' you are best teacher in world
@legojenn
@legojenn 5 ай бұрын
Why are lambda functions so hard to get my head around? I think that I understand, then I don't. Maybe it's overthinking?
@DrDeuteron
@DrDeuteron 4 ай бұрын
Overthinking: lambda x: x**2 is "f(x) = x**2" wherever it appears.
@Qbiccx
@Qbiccx 4 ай бұрын
Why did he print the sorted list as list() and not directly?
@randylplampin1326
@randylplampin1326 4 ай бұрын
I'm familiar with Lisp Lambda functions.
@liubomirberberoff7784
@liubomirberberoff7784 4 ай бұрын
"In this video you will learn about the lambda function in just a few minutes" Aight bet?
@dn7949
@dn7949 3 күн бұрын
Wait, so variables in Python are just functions?
@DrDeuteron
@DrDeuteron 4 ай бұрын
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!?
@MLGJuggernautgaming
@MLGJuggernautgaming 5 ай бұрын
It’s a shame they don’t just have multi line lambdas or an explicit return
@DrDeuteron
@DrDeuteron 4 ай бұрын
but it's an "in-line" function.
@MLGJuggernautgaming
@MLGJuggernautgaming 4 ай бұрын
@@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?
@viddeshk8020
@viddeshk8020 5 ай бұрын
KZbin Template 😢
@karannchew2534
@karannchew2534 25 күн бұрын
Content is too "flashy". Confusing and annoying to watch.
@pratyush-se5pr
@pratyush-se5pr 5 ай бұрын
1st view on the video
@trevoro.9731
@trevoro.9731 5 ай бұрын
Lambda functions are a trash implementation of anonymous functions - they are only lambda expressions in Python.
@MuhammadDaudJan
@MuhammadDaudJan 5 ай бұрын
Bro fell off
@TechWithTim
@TechWithTim 5 ай бұрын
Thanks!
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 219 М.
Python 101: Learn These 5 Must-Know HIDDEN Features
16:38
Tech With Tim
Рет қаралды 70 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 186 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 190 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 16 МЛН
Python Data Classes Are AMAZING! Here's Why
16:11
Tech With Tim
Рет қаралды 85 М.
How To Write Better Functions In Python
14:17
Indently
Рет қаралды 50 М.
Python: Lambda, Map, Filter, Reduce Functions
9:59
Oggi AI - Artificial Intelligence Today
Рет қаралды 384 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 316 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
10 Python Functions That Will Simplify Your Life
19:19
Tech With Tim
Рет қаралды 61 М.
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 239 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 630 М.
10 Python Comprehensions You SHOULD Be Using
21:35
Tech With Tim
Рет қаралды 158 М.
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 870 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 186 МЛН