0

what's lamdas

i am confused

23rd Oct 2020, 2:01 PM
Aymen Hamidi
5 Antworten
+ 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.
23rd Oct 2020, 2:09 PM
Davide
Davide - avatar
+ 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
23rd Oct 2020, 5:38 PM
Sousou
Sousou - avatar