What is lambda?



What is lambda?..

Answer / Anand Shanker Tiwari

In Python, 'lambda' is a small anonymous function that can take any number of arguments (up to four), but can only have one expression. It's mainly used for simple, short functions.n```nf = lambda x: x ** 2nf(5) # prints 25``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Is there any way to kill a thread in python?

1 Answers  


What is key lambda in python?

1 Answers  


What is a raw input?

1 Answers  


Explain different way to trigger/ raise exception in your python script?

1 Answers  


Which web server is best for python?

1 Answers  


What is __ doc __ in python?

1 Answers  


What does * args mean in python?

1 Answers  


What are classes in programming?

1 Answers  


How can files be deleted in python?

1 Answers  


What is self?

1 Answers  


What is pip install?

1 Answers  


Why do u want this job?

1 Answers  


Categories