Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 25)
25.
What does the term "closure" mean?
A function that calls itself
A function that takes a variable number of arguments
A function object that has access to variables in its lexical scope
A function with a return type specified
Answer: Option
Explanation:
A closure is a function object that has access to variables in its lexical scope, even when the function is called outside that scope.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.