What is it print((lambda x: x**2 + 5*x + 4) (-4)) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is it print((lambda x: x**2 + 5*x + 4) (-4))

Help, what is it/Помогите, что это?

19th Dec 2016, 9:53 AM
Никита Судаков
Никита Судаков - avatar
4 Answers
+ 10
Replace x by -4 so you have: (-4)^2 + 5*(-4) + 4 = 16 - 20 + 4 = 0
19th Dec 2016, 10:22 AM
Jafca
Jafca - avatar
0
0
5th Jan 2017, 2:41 AM
陈晟康
陈晟康 - avatar
0
print((lambda x: x+5)(a)) will give you as an answer a+5 (you have to define a for that to work) print((lambda x,y: x+y)(a,b)) Will give you a+b as an answer, etc...
9th Jan 2017, 2:35 AM
ramzi
ramzi - avatar
0
0
19th Jan 2017, 4:00 PM
smallgrass