# Assignment

*noun*

say it: **“uh-SINE-ment”** **/əˈsaɪnmənt/**

Storing a value in a variable with a single =; the value on the right goes into the name on the left.

## What is **assignment**?

**Assignment** stores a value in a variable with a single `=`. The value on the right goes into the name on the left.

```python
city = "Denver"
temperature = 72
```

## In a sentence

- “The **assignment** total = 0 starts the running total.”
- “city = "Denver" is an **assignment**, not a comparison.”

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

Updated: November 19, 2026

## In other subjects

- [Assignment in C#](https://www.ask-codey.com/glossary/assignment-c-sharp)
- [Assignment in Java](https://www.ask-codey.com/glossary/assignment-java)
- [Assignment in JavaScript](https://www.ask-codey.com/glossary/assignment-javascript)

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