<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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to