# Repeating with while

A while loop runs its indented block again and again as long as its condition stays True, so a program can count, keep going until a job is done, or keep asking until an answer makes sense.

![Cheat sheet: Repeating with while](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/dd3ccd68be0742a9b66d0788f7d2a38e.webp)

- Category: Python
- Level: Novice
- Tags: Augmented Assignment (python), Infinite Loop (python), python, while Loop (python)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-while-loops-cheat-sheet
