Jul-16-2019, 05:17 AM
It appears that the problem is that line 2 assigns the return of a function to its own variable.
x=10 y = (lambda x : x+2 ) print(y(x))Works,
Lambda function
|
|
Messages In This Thread |
Lambda function - by Uchikago - Jul-16-2019, 02:24 AM
RE: Lambda function - by Gribouillis - Jul-16-2019, 04:54 AM
RE: Lambda function - by millpond - Jul-16-2019, 05:17 AM
RE: Lambda function - by perfringo - Jul-16-2019, 08:56 AM
|