Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 2)
2.
How is the syntax of a lambda function different from a regular function?
Lambda functions use the keyword lambda, regular functions use def
Lambda functions must have a return statement, regular functions may not
Lambda functions can have multiple expressions, regular functions cannot
Lambda functions require parentheses around parameters, regular functions do not
Answer: Option
Explanation:
Lambda functions are defined using the lambda keyword, while regular functions are defined using the def keyword.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.