A tuple is a sequence of Python objects that are immutable. This means you cannot update or alter the values in any way.
To create a tuple, use the “()” and assign it to a variable.
Now let’s create a tuple variable with values for example purposes. Just like a list and dictionary, it can contain mix character types.
Indexing and Slicing
Tuples can be sliced and indexed like strings and lists.
Tuples index start at 0, just like strings and lists.
You can assign value for value using a tuple on the left side of the tuple assignment statement to correspond to a value on the right side of the assignment statement in the same indexed position. Let’s demonstrate this.