[Tutor] question on lists

Martin Klaffenboeck martin.klaffenboeck@gmx.at
07 Sep 2002 22:49:19 +0200


Hello,

I have got a list with 4 columns.  This 4 columns are:

string1 string2 id timestamp

So how do I store the data?  As a list or as an array:

What I want to do with this data:

Sort the list alphabetically (if possible _not_ case sensitive).
Add new entries at the right alphabetic position.

Randomize the list (or a copy of it) and sort it back alphabetically
after modifying the id and the timestamp.


Whats the best way to store data for this in python?

Thanks,
Martin (a newbie)

PS.  Sorry for my bad english.

--