Understanding Python : UnboundLocalError
1462
UnboundLocalError on local variable when reassigned after first use
154550
unexpected execution of Exceptions in python
27902
What is the purpose of the single underscore "_" variable in Python?
2701
Assigning to variable from parent function: "Local variable referenced before assignment"
34224
What is an "index out of range" exception, and how do I fix it?
86496
Python function NameError
30914
Unbound variable and name
96120
What is the difference between local and global in a TeX meaning?
150519
When should you use a local class in Java?
131376
Module and Local variable
50629
Confusing [...] List in Python: What is it?
69282
TypeError: unsupported operand type(s) for -: 'str' and 'int'
145497
What does the  operator do in python?
12279
Accessing an array out of bounds gives no error, why?
47481
Python: 'str' object is not callable
117377
error: function returns address of local variable
38437
Python dictionary comprehension using locals() gives KeyError