06 Tuple
06 Tuple
Tuples are a Python data structure that is similar to lists but with a
different syntax. The elements of a tuple are enclosed in parentheses
instead of square brackets.
Tuples are immutable, which means that once they are created, their
elements cannot be changed. This is different from lists, which are
mutable and can have elements added, removed, or modified.
Tuples are more efficient than lists for the computer to use,
particularly in larger programs.
Understanding the Tuple Data Type