python · python/UnboundLocalError
UnboundLocalError
UnboundLocalError
A subclass of NameError raised when a local variable is referenced before it has been assigned a value.
A subclass of NameError raised when a local variable is referenced before it has been assigned a value.