sorting two corresponding lists?

Esmail ebonak at hotmail.com
Mon Apr 20 12:58:44 EDT 2009


Saketh wrote:
>
> 
> Why not use a dictionary instead of two lists? Then you can sort the
> dictionary by value -- e.g.

thanks for the suggestion. I am not sure this is quite suitable for my
application (the example I provided was extremely simplified), but this
is a useful technique to know and has been stored away for future use.

Thanks again,
Esmail




More information about the Python-list mailing list