+ 2

Lambdas in python

How much lambdas important in python?

22nd Apr 2021, 11:45 AM
MinhAj RahmAn
MinhAj RahmAn - avatar
6 Antworten
+ 1
Thanks everyone
22nd Apr 2021, 1:31 PM
MinhAj RahmAn
MinhAj RahmAn - avatar
+ 1
MinhAj RahmAn Not much I guess
23rd Apr 2021, 2:00 PM
Aditya
Aditya - avatar
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.
22nd Apr 2021, 1:03 PM
Mohd Aadil
Mohd Aadil - avatar
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
22nd Apr 2021, 1:10 PM
Scarlet Witch
Scarlet Witch - avatar
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.
22nd Apr 2021, 1:13 PM
Seb TheS
Seb TheS - avatar
0
I only use lambdas while using map/filter functions, as it makes the code shorter and cleaner.
22nd Apr 2021, 7:50 PM
Calvin Thomas
Calvin Thomas - avatar