13.6. Glossary


A type of sequence, much like a list but immutable. A tuple is created by enclosing one or more values in parentheses, separated by commas.


When multiple values are specified, separated by commas, they are packed into a tuple.


When a tuple is assigned to a collection of variable names separated by commas, the tuple is unpacked and the separate values are assigned to each of the variables.


A tuple with exactly two items.

You have attempted of activities on this page