What is a closure in Python?
-
A
An inner function that captures and remembers variables from the enclosing scope even after the outer function has returned
-
B
A function that returns multiple values using a tuple
-
C
A class that implements the __call__ method to behave like a function
-
D
A function that blocks access to global variables