convert it into lambda def myfunc (x) s=s*2+67 g=29×a return g | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

convert it into lambda def myfunc (x) s=s*2+67 g=29×a return g

12th Oct 2016, 9:08 AM
khateeb anwer
khateeb anwer - avatar
5 ответов
+ 2
Your code has syntax error and right code is: def myfunc(): s = 2 h = s*2+67 g = 29*s return g And now the same result in lambda: print((lambda x: x*29)(2))
14th Oct 2016, 8:41 PM
Yethrosh
Yethrosh - avatar
+ 1
you use 'a' and 's' while you didnt define them and you never used 'x' 😁😁😁😁😂😂😂😂
19th Nov 2016, 2:49 PM
Hetbo.net
Hetbo.net - avatar
0
what is a supposed to be?
12th Oct 2016, 9:36 AM
Fhatuwani Luvhengo
Fhatuwani Luvhengo - avatar
0
those are global vars douchebag hosein
18th Dec 2016, 6:54 PM
khateeb anwer
khateeb anwer - avatar
0
i am talking abt h and s
18th Dec 2016, 6:54 PM
khateeb anwer
khateeb anwer - avatar