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 |
Tell us what is python? What are the benefits of using python? What do you understand of pep 8?
Why python is used?
What are python methods?
Does python support multiple inheritance?
Tell us what is module and package in python?
Which is better java or python?
What is purpose of __init__ in class ? Is it necessary to use __init__ while creating a class ?
What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?
Why are identifier names with a leading underscore disparaged?
What is loop in python?
What is the difference between a list and a tuple?
What is the with statement in python?