- #1
azerty12
- 15
- 0
Hi guys
I'm trying to program a Roulette game on Python
My programs asks for inputs and I gave names to these inputs.
The point is, since I didn't assign these names before, the following error occurs:
UnboundLocalError: local variable 'color' referenced before assignment
I tried to get rid of this error with exceptions, but I couldn't
Any idea?
I'm trying to program a Roulette game on Python
My programs asks for inputs and I gave names to these inputs.
The point is, since I didn't assign these names before, the following error occurs:
UnboundLocalError: local variable 'color' referenced before assignment
I tried to get rid of this error with exceptions, but I couldn't
Any idea?