I can do
import random
a = [1, 2, 3]
random.shuffle(a)
or
from random import shuffle
a = [1, 2, 3]
shuffle(a)
But I can't
import random.shuffle
a = [1, 2, 3]
random.shuffle(a)
which will make the interpreter complain
'random' is not a package.
Why is this?