Python Variable scope methods
1462
UnboundLocalError on local variable when reassigned after first use
1499
How do I create variable variables?
119468
How do you create different variable names while in a loop?
113247
scope of local variables of a function in C
91295
Why does a Try/Catch block create new variable scope?
95222
Block scope in Python
11419
Can you explain closures (as they relate to Python)?
142031
Variable scope confusion in C#
129168
scope of local variable in enhanced for-loop
61828
What is the Python equivalent of static variables inside a function?
38411
Python overwriting variables in nested functions
18605
Local variables in nested functions
15233
Event handler scope in Javascript
91441
What is the scope of a 'while' and 'for' loop?
96186
Printing names of variables passed to a function
27136
Reference: What is variable scope, which variables are accessible from where and what are "undefined variable" errors?
48128
Declaring variables inside or outside of a loop