The concept where the inner function captures and remembers the enclosing function's local state is called _______.

  • Abstraction
  • Closure
  • Encapsulation
  • Inheritance
The concept where the inner function captures and remembers the enclosing function's local state is called a Closure. Closures are used in Python to create functions with behavior that depends on the variables in the enclosing function.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *