I can't understand about lambda | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I can't understand about lambda

Python

20th Oct 2017, 1:06 AM
Adif Alam
Adif Alam - avatar
3 Answers
+ 1
def hi(x): c=x**5 return c -------------''is equivalent to"--------->> hi=lambda x : x**5
20th Oct 2017, 4:02 AM
sayan chandra
sayan chandra - avatar
+ 1
Lambda describes a function
21st Jan 2018, 12:37 PM
Adif Alam
Adif Alam - avatar
0
here lambda x wokrs as f(x) = x**5 and returning f(x) with whatever the value of x you passed as argument
20th Oct 2017, 4:05 AM
sayan chandra
sayan chandra - avatar