TUPLE & LIST
gerrit at nl.linux.org
Thu Jan 15 19:01:41 CET 2004
Christos TZOTZIOY Georgiou wrote:
> 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.
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
Asperger's Syndrome - a personal approach:
More information about the Python-list