UnboundLocalError: local variable referenced before assignment
The error message: UnboundLocalError: local variable ‘variable_name’ referenced before assignment occurs when you try to use a local variable inside a function before it has been assigned a value. 1…..