Inplace shuffle function returns none
John Gordon
gordon at panix.com
Tue Oct 18 17:35:55 EDT 2016
More information about the Python-list mailing list
Tue Oct 18 17:35:55 EDT 2016
- Previous message (by thread): Inplace shuffle function returns none
- Next message (by thread): Inplace shuffle function returns none
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In <9d24f23c-b578-4029-ab80-f117599e2ca7 at googlegroups.com> Sayth Renshaw <flebber.crue at gmail.com> writes: > So why can't i assign the result slice to a variable b? Because shuffle() modifies the list directly, and returns None. It does NOT return the shuffled list. -- John Gordon A is for Amy, who fell down the stairs gordon at panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"
- Previous message (by thread): Inplace shuffle function returns none
- Next message (by thread): Inplace shuffle function returns none
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list