0
Are lambda in python only valid for defining the function with only one statement?
I am unable to define a lambda containing two statements and getting a syntax error
1 Respuesta
+ 1
You can only have one statement in a lambda function.
I am unable to define a lambda containing two statements and getting a syntax error