6 Antworten
+ 1
Thanks everyone
+ 1
MinhAj RahmAn
Not much
I guess
0
Hello MinhAj RahmAn lambdas are not important but definitely they are cool and sweet 🍬🍭.
Their power can be seen when you will use them inside another function like map.
0
lambdas are like functions expect you can't assign them name, but they can be assigned with variables.
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2460/?ref=app
0
Lambdas are not very important, because most of their usages can be fulfilled with a def-defined function equivalent.
Lambdas will become more useful, when you need a simple function right away for example as an argument to another function or when you need to call the function right away and don't need the function afterwards.
0
I only use lambdas while using map/filter functions, as it makes the code shorter and cleaner.