+ 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))
2 Antworten
+ 5
You missed the ()
Example:
print((lambda x,y: x + y)(1, 2))
+ 1
Lisa
Thank You very much, I just got that now