Python LAMBDA FUNCTION?! #python #programming #coding

preview_player
Показать описание
This video shows a quick illustration of what lambda functions are in Python. These are also referred to as anonymous functions.

Background Music:
Attribution 4.0 International (CC BY 4.0)
Рекомендации по теме
Комментарии
Автор

Yes, this video is slightly sarcastic. I would never use it to calculate 1+2. I used an extremely trival problem so that I could better demonstrate the syntax of lambda functions.

b
Автор

Lambda functions are just like regular functions, except they make your coworkers hate you.

aceplayer
Автор

I swear someday someone is going to figure out a Python one-liner that attains world peace but no one is going to use it because its "not easy to read"

moustachemewe
Автор

Note : lambda has many use cases, but key places to use lambda are in amp and filter function please learn about map and filter and how to use lambda in them . Very useful !! 😊

timilehinorawusi
Автор

My professors teaching me Lambda as if I'm not going to just use regular functions anyway

elgatorado
Автор

Damn, I thought it would write the whole Half-Life code for me.

gottem_
Автор

WOAHHH thank you!! Just started learning Python recently and lambda definitely was a weird one to learn for me personally, but this all makes sense now 🙏

so_ma_music
Автор

Dude, this is the best use case of short form content…. learning!? Brilliant 👏👏

coldenate
Автор

Using lambdas along with map to perform fast operations on lists is what got me into them

hhill
Автор

If I see a junior developer do this just know I'm breaking your keyboard

Kadori
Автор

Word of advice, if you are making a video about lambda functions, actually explain its use case instead of just writing 1+2 to show that you can do it like that.

Lambda functions are really important and useful functions which allows us to pass values to other functions by implementing it in a single line. You won't understand its usecase in web programming but it totally make sense in application programming. I always end up using them in my kivy click event code because kivy doesn't let me pass the values directly or passes a reference that I don't need in my listeners. Thus wrapping the listener call with lambda functions helps to keep code compact and understandable.

reeti
Автор

More python shorts please! This is so helpful

BearfootBrad
Автор

Annonymous functions are popular in JavaScript, where they enjoy being wrapped around eachother in an endless web of confusion.

alkebabish
Автор

'lambda'
half life 2 flashbacks

isoceptic
Автор

There is no way that you make me understand a concept that took me like 2 hours to parcially understand in just 30 seconds... thanks dude

matiasalexannder
Автор

This was so helpful. I have never understood Lambda

TheReesesGuy
Автор

I myself never really understood lambda functions, until I watched this video and it clearly explained it in a concise way with a rather simple example. Very good job!

AndrewMycol
Автор

This was a much more succinct explanation than I've heard elsewhere. Thank you.

apalsnerg
Автор

I wasn’t used to lambda functions until I learn JavaScript. And honestly… they make everything so much easier and quicker.

tobennaokoli
Автор

wow! one of the few programming shorts that is actually useful and very well explained. Good job!

TheAleBecker