What actually happen here when you have your local variable called outside the global variable in python?
4272
Short description of the scoping rules?
113247
scope of local variables of a function in C
100152
Can not increment global variable from function in python
117778
class variables is shared across all instances in python?
62927
Python scope: "UnboundLocalError: local variable 'c' referenced before assignment"
128203
Python global variable scoping
13884
How to change a variable in a calling function from a called function?
151963
How can I pass my locals and access the variables directly from another function?
90061
Using var outside of a method
67487
Javascript equivalent of Python's locals()?
145317
Is it possible that a variable declared after the main has file scope?
93075
Why are global and static variables initialized to their default values?
131997
When and how should I use a ThreadLocal variable?
12655
Don't understand why UnboundLocalError occurs (closure)
48128
Declaring variables inside or outside of a loop
66350
Weird closure behavior in python
26433
How does variable assignment work in JavaScript?