next up previous contents
Next: Functions and Methods for Up: Lists, Tuples and Dictionaries Previous: Tuple Objects   Contents

Operators and Indexing for Tuples

The same operators mentioned in Section 4.3 for lists apply to tuples as well, keeping in mind that tuples are immutable. Thus, slicing operations for tuples are more similar to strings than lists; slicing can be used to extract parts of a tuple, but not to change them.

Phil Spector 2003-11-12