TUPLE & LIST

Francis Avila francisgavila at yahoo.com
Thu Jan 15 14:18:36 EST 2004


Gerrit Holl wrote in message ...
>Christos TZOTZIOY Georgiou wrote:
>> Examples:
>> Use a list for a list of names.
>> Use a tuple for (x,y) coordinates in some area.
>> Use a list of (name,phone,address) tuples for your poor man's address
>> book which you will implement in python.
>
>What if someone moves away?
>That is, I think one could better use a mutable type for the address book.

That's why it's a "poor man's" address book. :)
-- 
Francis Avila



More information about the Python-list mailing list