[Tutor] improve the code

lina lina.lastname at gmail.com
Wed Nov 2 16:54:05 CET 2011


<snip>

Regard the sorted(),

I still have a question,

how to sort something like


>>> results
['1A', '10B', '2C', '3D']
>>> sorted(results)
['10B', '1A', '2C', '3D']

as [ '1A', '2C', '3D','10B']

Thanks,

mainly based on their digital value.


More information about the Tutor mailing list