List and tuple usage distinction??

Ishwar Rattan rattan at cps.cmich.edu
Wed Sep 1 20:17:28 EDT 2004


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?

-ishwar



More information about the Python-list mailing list