Built-in Data Structures: Tuples
A tuple is an ordered collection of objects
Tuples can contain any type of object
Tuples are immutable
Examples
() Empty tuple
1, One-element tuple (!)
(1, ”2”, 3.0) Three-element tuple
1, (”2”, 3.0) Nested tuple
Previous slide
Next slide
Back to first slide
View graphic version