about sort and dictionary
Eric Jacoboni
jaco at neottia.net
Sun Nov 20 08:38:42 EST 2005
Shi Mu <samrobertsmith at gmail.com> writes:
> #why c can not append the sorted b??
Because sort() doesn't return anything?
According to the library reference:
7) The sort() and reverse() methods modify the list in place for
economy of space when sorting or reversing a large list. To remind you
that they operate by side effect, they don't return the sorted or
reversed list.
--
Eric Jacoboni, ne il y a 1435934131 secondes
More information about the Python-list
mailing list