problem with sorting

castironpi at gmail.com castironpi at gmail.com
Fri Mar 28 11:14:31 CET 2008


On Mar 28, 1:57 am, raj <rajeeshrn... at gmail.com> wrote:
> To ankit:
>
> Well, sort() doesn't return the sorted list. It returns None. Why not
> this straightforward way?
> dvals = dict.values()
> dvals.sort()
> print dvals

Why not sorted( dict.values() ).

Can it return the right things from the right things in order from the
givens?  ( dvals , values, sort, print ).decode()



More information about the Python-list mailing list