Georg Brandl added the comment:
Vizcaynot schrieb:
> New submission from Vizcaynot:
>
> In python 3.0a1 under Win XP SP2:
> Typing next code:
>
> import random
> s=range(10)
range() now returns an iterator, not a sequence, so random.shuffle() can't
work on it. Use list(range()) if you want a l
New submission from Vizcaynot:
In python 3.0a1 under Win XP SP2:
Typing next code:
import random
s=range(10)
random.shuffle(s)
I have next error:
Traceback (most recent call last):
File "", line 1, in
File "C:\python30\lib\random.py", line 262, in shuffle
x[i], x[j] = x[j], x[i]
TypeEr