Tuples are another sequence type in Python. Tuples consist of a number of 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, delete or modify items in a tuple. Immutable objects are useful when you need a constant hash value. The most popular example is the key to a Python dictionary.
In this article, you will learn how to:
- Create tuples
- Work with tuples
- Concatenate tuples
- Special case tuples
Let’s find out how to create tuples! Continue reading Python 101 – Learning About Tuples