Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 21)
21.
What happens if a lambda function has more parameters than arguments provided during its invocation?
It raises a SyntaxError.
The extra parameters are ignored.
It raises a TypeError.
The lambda function automatically assigns default values to the extra parameters.
Answer: Option
Explanation:
If a lambda function is defined with more parameters than provided during invocation, a TypeError is raised.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.