Actualités

Tuple. Consider this starfish. It has 5 arms. It is underwater. These attributes form a unit of information—they could be stored together in a tuple. Python tuples are values—they never change.
A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. A tuple is a collection that is ordered and unchangeable. In Python, tuples are written with round brackets.
Use the tuple data type in Python for immutable, ordered collections of elements. Tuples are ideal for fixed-size collections, heterogeneous data, returning multiple values from functions, and as ...