Functions local and global variables

At 9:50 in the scond video of functions, when we call the outer() function, shouldn’t the output be
Local
Local
Local
First time it got printed bcz of calling outer function since it has inner() function inside it and then the second time bcz we call the inner function again and the third time bcz of the “print(x)” ?

Hey @devchopra999_11c6416ab7f09bbf,
No it will be printed only two times first when inner() function is called in outer() function and second because of print(x). While defining the inner() function it will not print because only a function is defined it is not called.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.