List and tuple usage distinction??
peter at engcorp.com
Thu Sep 2 03:12:58 CEST 2004
Ishwar Rattan wrote:
> I am a little confused about a list and a tuple.
> Both can have dissimilar data-type elements, can be returned
> by functions. The only difference that I see is that list is
> mutable and tuple is not (of course list have .append() etc.)
> What is a possible scenario where one is preferred over the other?
Does this answer in the FAQ list help?
More information about the Python-list