What is a closure in Python?
-
A
A function that retains access to variables from its enclosing scope even after that scope has finished executing
-
B
A function defined inside a class
-
C
A function that cannot be called from outside its module
-
D
A function with no return statement