Python – Tuples:

Tuples are generally used to store the heterogeneous data which immutable. Even Tuple looks like Lists but Lists are mutable.

To create a tuple, we need to use the comma which separates the values enclosed parentheses.

Example:

# Creating an empty tuple

Using Functions with Tuples:

Operators with Tuples:

Slicing in Tuples: