What is a lambda statement? Provide an example.



What is a lambda statement? Provide an example...

Answer / seshadri d

A lambda is a function which can we give any arguments but it can write the single statement.
Example :- x = lambda i,j : i+j
print(x(4,5))

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Tell us what is python? What are the benefits of using python? What do you understand of pep 8?

0 Answers  


Why python is used?

0 Answers  


What are python methods?

0 Answers  


Does python support multiple inheritance?

0 Answers  


Tell us what is module and package in python?

0 Answers  






Which is better java or python?

0 Answers  


What is purpose of __init__ in class ? Is it necessary to use __init__ while creating a class ?

0 Answers  


What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

0 Answers  


Why are identifier names with a leading underscore disparaged?

0 Answers  


What is loop in python?

0 Answers  


What is the difference between a list and a tuple?

0 Answers  


What is the with statement in python?

0 Answers  


Categories