query: Error when referencing a inside a function without using `global` keyword in python
positive_passages.docid: 1462
positive_passages.text: UnboundLocalError on local variable when reassigned after first use
negative_passages.docid: 138102
negative_passages.text: Python 3: UnboundLocalError: local variable referenced before assignment
negative_passages.docid: 75407
negative_passages.text: How to use a variable in a different function?
negative_passages.docid: 134363
negative_passages.text: Why does the global variable exist here, where it was declared only in Module?
negative_passages.docid: 77622
negative_passages.text: Passing functions with arguments to another function in Python?
negative_passages.docid: 117377
negative_passages.text: error: function returns address of local variable
negative_passages.docid: 79873
negative_passages.text: Accessing variables from other functions without using global variables
negative_passages.docid: 102063
negative_passages.text: Global JavaScript Variable Scope: Why doesn't this work?
negative_passages.docid: 38411
negative_passages.text: Python overwriting variables in nested functions
negative_passages.docid: 81478
negative_passages.text: Setting local variables to a function instead of using globals optimize the function
negative_passages.docid: 57
negative_passages.text: Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference
negative_passages.docid: 2701
negative_passages.text: Assigning to variable from parent function: "Local variable referenced before assignment"
negative_passages.docid: 105150
negative_passages.text: How to compile self-referencing functions (to perform recursive a task)
negative_passages.docid: 111137
negative_passages.text: "NameError: name '' is not defined" after user input in Python
negative_passages.docid: 138289
negative_passages.text: Python: Sharing global variables between modules and classes therein
negative_passages.docid: 151963
negative_passages.text: How can I pass my locals and access the variables directly from another function?
negative_passages.docid: 62927
negative_passages.text: Python scope: "UnboundLocalError: local variable 'c' referenced before assignment"