Shuffle

Seymore4Head Seymore4Head at Hotmail.invalid
Sat Sep 13 19:47:35 EDT 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