I''m trying to make a lambda code, some one help me | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

I''m trying to make a lambda code, some one help me

# IT HAS BEEN CORRECTED, THANKK YOU I''m to take in two inputs, price and percentage, and get the given percentage as output. Here is my try, not working price = int(input()) perc = int(input()) print((lambda x,y: x*y/100) (price, perc))

10th Apr 2022, 11:20 AM
David Michael
David Michael - avatar
2 Respuestas
+ 5
You missed the () Example: print((lambda x,y: x + y)(1, 2))
10th Apr 2022, 11:27 AM
Lisa
Lisa - avatar
+ 1
Lisa Thank You very much, I just got that now
10th Apr 2022, 12:04 PM
David Michael
David Michael - avatar