0
Where we use lambda function in python
2 Answers
+ 2
Lambdas are useful when you need a quick function to do some work for you. It is an anonymous function when we don't need to actually give the function a name.
>>> my_list = range(16)
>>> print filter(lambda x: x % 3 == 0, my_list)
In another hand, f you plan on creating a function you'll use over and over, you're better off using "def" and giving that function a name.
0
i think anonymous is function which is nameless.
I am right or wrong