🎉 October Learning Month — learn a new software term every day!
An interactive flashcard trainer for software engineering terms.

Tuple

In plain terms

An ordered, fixed collection of values, often of different types.

Going deeper

A tuple groups a fixed number of values together, commonly immutable, useful for returning multiple results or pairing related data. Position gives each element meaning.

Under the hood

Immutability makes tuples hashable (usable as keys) and safe to share; many languages support unpacking/destructuring.

Examples

Returning (x, y) coordinates, dict keys, database rows, Python tuples.

Think of it like...

Like a labeled-by-position gift box: first slot the card, second the gift, fixed and unchanging.

Feedback & Bug Report