tips for this exercise?

Fredrik Lundh fredrik at
Wed Mar 29 13:15:29 CEST 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'


More information about the Python-list mailing list