M
M B
Hi,
I try to learn python.
I don't understand this:
(running in idle)
print dept
dept+=1
print dept
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
mud()
File "<pyshell#6>", line 2, in mud
dept+=1
UnboundLocalError: local variable 'dept' referenced before assignment
Regards MB
I try to learn python.
I don't understand this:
(running in idle)
print dept
dept+=1
print dept
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
mud()
File "<pyshell#6>", line 2, in mud
dept+=1
UnboundLocalError: local variable 'dept' referenced before assignment
Regards MB