# Looping Through Dictionaries and Nested Data

A for loop goes through a dictionary's keys, items(), keys() and values() give its pairs, its keys or its values, and lists of dictionaries and dictionaries of lists hold whole tables of data, the shape CSV files and web APIs give you.

![Cheat sheet: Looping Through Dictionaries and Nested Data](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/2177d1a5bc9b4b9eb163178062c90f65.webp)

- Category: Python
- Level: Apprentice
- Tags: Dictionary (python), items(), Key-Value Pair (python), Nested Data, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-dictionaries-nested-data-cheat-sheet
