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 |
Explain Inheritance in Python?
Why lambda forms in python does not have statements?
Write a program to create a class and make an object of the class in python?
How does mro work in python?
How will you use python to read a random line from a file?
How many types of objects does python support?
Which method removes and returns last object of a list?
What animals sleep the least?
How many name spaces are defined in python?
What does the *args do in python?
What is dogpile effect?
What is the difference between re.search and re.match?