We can declare a function inside a function, but it’s not a nested function . Because nested functions definitions can not access local variables of the surrounding blocks, they can access only global variables of the containing module.
We can declare a function inside a function, but it’s not a nested function . Because nested functions definitions can not access local variables of the surrounding blocks, they can access only global variables of the containing module.