Sorting a list

Tino Wildenhain tino at wildenhain.de
Tue Oct 28 09:59:59 EDT 2008


RC wrote:
> unsortedList = list(["XYZ","ABC"])
> 
> sortedList = unsortedList.sort()
> print sortedList
> 
> 
> Why this return None?

Because you did not read the documentation.

Regards
Tino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20081028/e30f0b96/attachment.bin>


More information about the Python-list mailing list