# Iterable

say it: **“IT-er-uh-bul”** **/ˈɪtərəbəl/**

Anything you can loop over with for.

## What is an **iterable**?

An **iterable** is anything you can loop over with `for`: lists, strings, dictionaries, files, `range()` and more.

```python
for letter in "hey":
    print(letter)          # h, e, y

for line in open("guests.txt"):
    print(line.strip())
```

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 17, 2026

## In other subjects

- [Iterable in JavaScript](https://www.ask-codey.com/glossary/iterable-javascript)

Source: https://www.ask-codey.com/glossary/iterable
