[Solved] Python 3: Theoretical question about the use of variables in functions [closed]
In order to give a complete answer as to why and what is happening here, first we need to talk about the concept of “scope”. Each function (and for loop, while loop etc) “lives in its own world” in terms of memory. What does that mean? Assume I have a function named “foo1” and another … Read more