How can I find the remainder when dividing 2 integers
Diez B. Roggisch
deets at nospam.web.de
Sun Feb 26 15:58:30 EST 2006
silverburgh.meryl at gmail.com schrieb:
> Can you please tell me what is the meaning of
> UnboundLocalError: local variable 'colorIndex' referenced before
> assignment
>
> in general?
Well, pretty much of what it says: You tried to access a variable without prior assignment to it. Like this:
a = b**2 + c**2
Won't work. But if you do
b = 2
c = 3
a = b**2 + c**2
it works. I suggest you read a python tutorial - plenty of the out there, google is as always your friend.
Diez
More information about the Python-list
mailing list