# Constant

say it: **“KON-stunt”** **/ˈkɑnstənt/**

A value that should never change, named in ALL CAPS so everyone leaves it alone.

## What is a **constant** in Python?

A **constant** is a value that shouldn't change while the program runs. Python won't stop you changing it; naming it in ALL CAPS tells everyone to leave it alone.

```python
SALES_TAX = 0.07
price = 20
print(price + price * SALES_TAX)  # 21.4
```

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

Updated: November 17, 2026

## In other subjects

- [Constant in C#](https://www.ask-codey.com/glossary/constant-c-sharp)
- [Constant in Java](https://www.ask-codey.com/glossary/constant-java)

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