Image for Tuple

Tuple

A tuple is a collection of ordered items stored together as a single unit. Think of it like a list of different things, such as a person's name, age, and height, where each piece of information is in a specific position. Unlike lists, tuples are often immutable, meaning their contents cannot be changed after creation. This makes them useful for representing fixed groups of related data, like coordinates or data records. Essentially, tuples help organize and keep together related pieces of information in a structured, reliable way.