On Tue, Oct 18, 2016 at 2:25 PM, Sayth Renshaw <flebber.c...@gmail.com> wrote: > So why can't i assign the result slice to a variable b? > > It just keeps getting none.
Because shuffle returns none. If you want to keep both the original list and the shuffled list, then do something like: b = a[:] shuffle(b) print(a) print(b) Copy it first, then shuffle it. -- https://mail.python.org/mailman/listinfo/python-list