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 |
Is there a switch..case statement in python?
How are the differences in help () and dir () functions?
Does python have oops concepts?
does recursion cause any trouble?
Mention what are the rules for local and global variables in Python?
List out atleast two loop control statements?
What is the cost of python certification?
What will be the output of data[-2] from the list data = [1,5,8,6,9,3,4]?
What is setup script?
What is python easy_install?
What does strip () do python?
Is python is better than java?