Tuples are ordered, immutable sequences, often used for fixed records and as dictionary keys.
1Points
A one-item tuple needs a comma: (5,)
Unpacking: a, b = t; extended: a, *rest = t
Only count() and index() methods
Loading subject content…
Tuples are ordered, immutable sequences, often used for fixed records and as dictionary keys.
A one-item tuple needs a comma: (5,)
Unpacking: a, b = t; extended: a, *rest = t
Only count() and index() methods