The Python Papers

The Python Papers

Python 101 - Learning About Tuples

Mike Driscoll's avatar
Mike Driscoll
Aug 03, 2023
∙ Paid

Tuples are another sequence type in Python. Tuples consist of several values that are separated by commas. A tuple is immutable, whereas a list is not. Immutable means that the tuple has a fixed value and cannot change. You cannot add or delete items in a tuple. Immutable objects are useful when you need a constant hash value. The key in a Python dictio…

User's avatar

Continue reading this post for free, courtesy of Mike Driscoll.

Or purchase a paid subscription.
© 2026 Mike Driscoll · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture