# Counting with for and range

A for loop runs its block once for each item it's handed, range() hands it a row of numbers to count with, up, down or in steps, and break and continue end a loop early or skip one pass.

![Cheat sheet: Counting with for and range](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/53be138f41bf4cc4a6473697dfef951d.webp)

- Category: Python
- Level: Novice
- Tags: break (python), continue (python), for Loop (python), python, range()
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-for-loops-and-range-cheat-sheet
