# break

*noun*

say it: **“BRAYK”** **/ˈbreɪk/**

A Python keyword that stops a loop at once, even if items are left.

## What does `break` do?

`break` stops a loop immediately, even if there are items left.

```python
for item in ["socks", "keys", "phone"]:
    if item == "keys":
        print("Found the keys!")
        break
```

## In a sentence

- “The menu loop runs until the user types q, and then **break** leaves it.”
- “Once the keys were found, **break** ended the search.”

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

- [break in C#](https://www.ask-codey.com/glossary/break-c-sharp)
- [break in Java](https://www.ask-codey.com/glossary/break-java)
- [break in JavaScript](https://www.ask-codey.com/glossary/break-javascript)
- [break in PowerShell](https://www.ask-codey.com/glossary/break-powershell)
- [break in Unix](https://www.ask-codey.com/glossary/break-unix)

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