Python 101 - Learning About Tuples
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…
Keep reading with a 7-day free trial
Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.