John Fouhy wrote: > Generally, you should use a tuple when you have different things that > you want to clump together to make one data structure. Whereas you > should use a list when you have multiple things that are the same, > that you want to iterate over. > Different perspective: tuples are immutable, lists are not. One may change a list by various techniques; one may not change a tuple.
tuples may be used as dictionary keys; lists may not tuples are found on the right of % (formatting); lists are not -- Bob Gailer 510-978-4454 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor