0
what's lamdas
i am confused
5 Answers
+ 2
Aymen Hamidi your question is repeated https://www.sololearn.com/discuss/242892/?ref=app
https://www.sololearn.com/discuss/1073755/?ref=app
https://www.sololearn.com/discuss/147048/?ref=app
https://www.sololearn.com/discuss/2167534/?ref=app
https://www.sololearn.com/discuss/1775380/?ref=app
https://www.sololearn.com/discuss/96077/?ref=app
https://www.sololearn.com/discuss/1802398/?ref=app
https://www.sololearn.com/discuss/2038344/?ref=app
https://www.sololearn.com/discuss/509127/?ref=app
https://www.sololearn.com/discuss/34839/?ref=app
and please put proper language tag, if you don't we couldn't help you
+ 1
Aymen Hamidi Me too!
Maybe you meant lambdas.
In that case they are function that do not deserve a name.
They are never necessary, in fact you can always give a name to a function.
+ 1
syntax:
myfunc = (lambda a, b : a+b)
similar as:
def myfunc(a, b):
return a+b
#its mostly used for one-line codes / expressions