Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 13)
13.
How does the scope of variables work in lambda functions?
Lambda functions can only access global variables
Lambda functions have their own local scope
Lambda functions can access variables from the calling environment
Lambda functions cannot access any variables
Answer: Option
Explanation:
Lambda functions can access variables from the surrounding environment, making them useful for short, specific tasks.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.