tips for this exercise?

bruno at modulix onurb at xiludom.gro
Wed Mar 29 11:11:07 CEST 2006


Paul Rubin wrote:
(snip)
> Why is everyone using shuffle?
> 
>     >>> import random
>     >>> random.sample(xrange(1,41), 5)
>     [24, 15, 9, 39, 19]

Great. Didn't know that one.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list