[Tutor] sort method
Annika Scheffler
annika.scheffler@gmx.net
Tue, 1 Oct 2002 18:24:13 +0200 (MEST)
Hi,
I am quite new to Python and I need your help:
Can you give me a very simple example of the list.sort method?
For instance I would like to sort this list:
l = "We all place a great deal of reliance on the Theory and Practice of
science, but the hopeful intentions of so many inventions can be quite buggered
up in appliance.".split()
How do I use the sort method?
If I simply write l.sort() , it doesn't work...what do I need to add?
Thanks a lot,
Annika
--
Ravens fly in flights, but the egale flies
alone.
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Günstige DSL- & Modem/ISDN-Tarife!