A Tuple is a type of value used in Python.
A Tuple is used to represent many items of the same type of value together,
but unlike a list a Tuple is immutable, which means values in the Tuple cannot be changed once the variable is defined
The Tuple type is referred to as tuple
internally in Python.
Tip: Python uses 0
as the first index in a list or Tuple.
Here is an example of a Tuple:
You can read from an index like this:
You can also iterate through a Tuple, here's an example of iterating through a Tuple and then using f-strings to print the value and the index: