0

[SOLVED] Help me with a Python problem

a = (lambda x: x * (x+1)) ??? print(a) What do I put in the ???

2nd Mar 2020, 5:20 AM
Filipe Craveiro
Filipe Craveiro - avatar
3 Respostas
+ 5
You can put a parenthese pair and a value inside it. The lamba function will be called with x = value and you'll get an evaluation: value * (value + 1)
2nd Mar 2020, 5:26 AM
Seb TheS
Seb TheS - avatar
+ 2
Thank you so much!
2nd Mar 2020, 5:27 AM
Filipe Craveiro
Filipe Craveiro - avatar
+ 1
I'm a bit confused with your question. What are you trying to do?
2nd Mar 2020, 5:24 AM
Austin