# Array

> A row of values kept together under one name. Each sits in a numbered spot.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** List

## Think of it like

Think of it like an egg box. Each egg has its own spot, and the spots are in a row.

## Definition

An array is one value that holds many values in a row. Each item sits in a numbered spot, and the count starts at zero. You can add items, take them out, sort them or go through them one by one. Python calls its array a list. Arrays are the most common way to keep many things of the same kind together.

## Example

A to-do app keeps Lucy's tasks in an array. Item 0 is buy milk, item 1 is call Jack.

## Example code

```python
>>> fruits = ["apple", "pear", "plum"]
>>> fruits[0]
'apple'
>>> len(fruits)
3
```

Three items in a row. The first one sits at spot 0.

## Why it matters

Programs rarely deal with just one thing. Lists of users, songs and orders are all arrays.

## Common mistake

Counting from 1. The first item is at spot 0, so the last one is at the length minus one.

## Three principles

- **In order.** Items keep the order you put them in.
- **Starts at zero.** The first spot is number 0.
- **One name, many values.** A single variable holds the whole row.

## Related terms

- [Index](https://learn.benibix.com/term/development/index)
- [Dictionary](https://learn.benibix.com/term/development/dictionary)
- [Set](https://learn.benibix.com/term/development/set)
- [Loop](https://learn.benibix.com/term/development/loop)
- [Tuple](https://learn.benibix.com/term/development/tuple)
- [Dynamic Array](https://learn.benibix.com/term/development/dynamic-array)

## Told apart from

- [Array vs Linked List](https://learn.benibix.com/compare/array-vs-linked-list): An array keeps its items side by side in memory, so reading any one is instant. A linked list joins items with pointers. Changes in the middle are quick, but reading is slow.
- [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

---

Source: https://learn.benibix.com/term/development/array
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-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
