I have a doubt regarding the concept of closure in an object-oriented programming language. so by definition, closure is a concept of an inner function having access to free variables(variables which are created in the outer function).
I want to know, why an inner function has this property? what is the logic behind this functionality of an object-oriented programming language?
P.S. I am learning OOPs in Python... If anybody has any idea please help :) Thank you