# Tuple

> A small, fixed group of values in order. It usually cannot be changed.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** Tuples, Tuple (Python)

## Think of it like

It is like a sealed egg box. The eggs stay in their spots and you cannot swap them.

## Definition

A tuple is a small, fixed group of values kept in order. Once made, it usually cannot be changed. Each spot often means something, like the x and y of a point. Python writes a tuple with round brackets, like (3, 4). A function can return a tuple to hand back two or three values at once.

## Example

A map app stores a spot as (51.5, -0.1), the latitude and longitude of London.

## Example code

```python
point = (3, 4)
x, y = point
print(x)
# 3
```

A tuple of two numbers, unpacked into x and y.

## Why it matters

A tuple says these values belong together and will not change. That guards against a slip that edits one by mistake.

## Common mistake

Using a tuple for a list that grows. Use a list or array when items will be added.

## Three principles

- **Fixed size.** The number of items stays the same.
- **Ordered spots.** Each place can have a meaning.
- **Usually unchangeable.** Made once, then read.

## Related terms

- [Array](https://learn.benibix.com/term/development/array)
- [Immutability](https://learn.benibix.com/term/development/immutability)
- [Return Value](https://learn.benibix.com/term/development/return-value)
- [Dictionary](https://learn.benibix.com/term/development/dictionary)
- [Set](https://learn.benibix.com/term/development/set)
- [Struct](https://learn.benibix.com/term/development/struct)

## Told apart from

- [Tuple vs Array](https://learn.benibix.com/compare/tuple-vs-array): A tuple is a small, fixed group where each spot has a meaning, like x and y. An array, or list, is a row of items of the same kind that can grow and change.

## Taught in

- [Lists, Dictionaries and Sets](https://learn.benibix.com/learn/development-concepts/lists-dictionaries-and-sets): Programming Basics, 8/18

![Six small cards in two rows. Type conversion turns the text 42 into the number 42. Concatenation joins Hello and Emma. A tuple holds three values in fixed slots. An enum lists RED, AMBER and GREEN. A built-in function len counts five letters in hello. A hard-coded line has a tax rate of 0.2 written straight into the sum.](https://learn.benibix.com/diagrams/dev7-working-with-values.svg)

---

Source: https://learn.benibix.com/term/development/tuple
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
