Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 3)
3.
What happens if a lambda function is assigned to a variable but not called immediately?
It raises a syntax error
It is stored as a reference to the function and can be called later
It automatically executes the function
It requires parentheses to be called later
Answer: Option
Explanation:
Assigning a lambda function to a variable allows you to store it as a reference for later use. It doesn't automatically execute when assigned.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.