TUPLE & LIST

Gerrit Holl gerrit at nl.linux.org
Thu Jan 15 13:01:41 EST 2004


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.

yours,
Gerrit.

-- 
46. If he do not receive a fixed rental for his field, but lets it on
half or third shares of the harvest, the grain on the field shall be
divided proportionately between the tiller and the owner.
          -- 1780 BC, Hammurabi, Code of Law
-- 
PrePEP: Builtin path type
    http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/




More information about the Python-list mailing list