Shuffle

Seymore4Head Seymore4Head at Hotmail.invalid
Sun Sep 14 01:47:35 CEST 2014


Here is a screenshot of me trying Dave Briccetti's quiz program from
the shell and it (the shuffle command) works.
https://www.youtube.com/watch?v=VR-yNEpGk3g
http://i.imgur.com/vlpVa5i.jpg

Two questions
If you import random, do you need to "from random import shuffle"?

Why does shuffle work from the command line and not when I add it to
this program?

import random
import shuffle
nums=list(range(1,11))
shuffle(nums)
print (nums)

I get:
No module named 'shuffle'



More information about the Python-list mailing list