# Keyword

> A word the language keeps for itself, like if or return. You cannot reuse it.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** Reserved Word

## Think of it like

Think of it like the words on road signs. Stop and Go mean one thing only, so nobody may use them as a name.

## Definition

A keyword is a word that a programming language keeps for itself. Words like if, for, while and return already have a fixed meaning. You cannot use them as names for your own things. Most code editors show keywords in their own colour. Each language has its own short list of them.

## Example

Emma tries to name a variable class in Python. Python stops her, because class is a keyword.

## Example code

```python
>>> import keyword
>>> keyword.iskeyword("while")
True
>>> keyword.iskeyword("apple")
False
```

Python can tell you itself which words it keeps for its own use.

## Why it matters

Keywords are the skeleton of every program. Knowing the short list makes any code easier to read.

## Common mistake

Using a keyword as a name, then getting an error that seems to make no sense.

## Three principles

- **Fixed meaning.** Each keyword does one job in the language.
- **Not for names.** You cannot call your own things by them.
- **Short list.** Most languages have only a few dozen.

## Related terms

- [Syntax](https://learn.benibix.com/term/development/syntax)
- [Statement](https://learn.benibix.com/term/development/statement)
- [Conditional Statement](https://learn.benibix.com/term/development/conditional-statement)
- [Loop](https://learn.benibix.com/term/development/loop)

## Taught in

- [Statements and Expressions](https://learn.benibix.com/learn/development-concepts/statements-and-expressions): Programming Basics, 3/18

---

Source: https://learn.benibix.com/term/development/keyword
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
