UnboundLocalError: local variable 'gold' referenced before assignment
12655
Don't understand why UnboundLocalError occurs (closure)
113603
Declare local variables as late as possible or at the nearest curly brace they belong?
2266
Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?
17877
Why are local variables not initialized in Java?
120124
Undefined values in Array(len) initializer
33125
Unbound Local Error with global variable
147916
C# error: Use of unassigned local variable
60733
Index and length must refer to a location within the string
109716
How to print value of global variable and local variable having same name?
81478
Setting local variables to a function instead of using globals optimize the function
112198
Global Variables vs. Local Variables
151963
How can I pass my locals and access the variables directly from another function?
12738
Correct Use Of Global Variables In Python 3
129423
How to change a global variable from within a function?
26589
Simulating a 'local static' variable in python
87653
How to disable pylint 'Undefined variable' error for a specific variable in a file?
2701
Assigning to variable from parent function: "Local variable referenced before assignment"