Which of the following best describes a Python closure?
Select one:
A function that retains access to its enclosing lexical scope
An object that wraps another function for memoization
A variable captured from a global scope
A lambda that doesn’t use any variables
Hint
Think about how inner functions behave when returned from outer functions.
Sorry! There has been an error processing your answer. Please try again.
Got feedback on this question?