cannot access local variable where it is not associated with a value
a=1
def f():
a+=1
f()
UnboundLocalError: cannot access local variable 'a' where it is not associated with a value
cannot access local variable where it is not associated with a value
a=1
def f():
a+=1
f()
UnboundLocalError: cannot access local variable 'a' where it is not associated with a value