1 2 3 4 5 6 7 8 9 10
| Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
JeuOrdi()
File "/Users/Adrien/Desktop/MASTERMIND.py", line 106, in JeuOrdi
guess = optionList[randint(0,len(optionList)-1)]
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py", line 218, in randint
return self.randrange(a, b+1)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py", line 196, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (0,0, 0) |
Partager