tips for this exercise?

Fredrik Lundh fredrik at pythonware.com
Wed Mar 29 06:15:29 EST 2006


Paul Rubin wrote:

> Why is everyone using shuffle?

maybe they're all stuck on 2.2 ?

$ python2.2
>>> import random
>>> random.shuffle
<bound method Random.shuffle of <random.Random instance at 0x815b13c>>
>>> random.sample
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'sample'
>>>

</F> 






More information about the Python-list mailing list