# Infinite Loop

*noun*

say it: **“IN-fih-nit loop”** **/ˈɪnfɪnɪt lup/**

A loop that never stops, usually because its condition never becomes false; Ctrl+C stops a program stuck in one.

## What is an **infinite loop**?

An **infinite loop** never stops, usually because its condition never becomes false. Press Ctrl+C to stop a program stuck in one.

```python
count = 0
while count < 5:
    print(count)
    # oops: forgot count += 1, so this never ends
```

## In a sentence

- “Forgetting count += 1 made an **infinite loop**.”
- “A while True loop is an **infinite loop** unless something inside it breaks out.”

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

Updated: November 19, 2026

## In other subjects

- [Infinite Loop in C#](https://www.ask-codey.com/glossary/infinite-loop-c-sharp)
- [Infinite Loop in Java](https://www.ask-codey.com/glossary/infinite-loop-java)
- [Infinite Loop in JavaScript](https://www.ask-codey.com/glossary/infinite-loop-javascript)
- [Infinite Loop in PowerShell](https://www.ask-codey.com/glossary/infinite-loop-powershell)

Source: https://www.ask-codey.com/glossary/infinite-loop
