# Variables: Giving a Value a Name

A variable gives a value a name with =, read "gets", so a program can remember it, use it in many places and change it later, and Python stops with a NameError when a line uses a name that hasn't been given a value yet.

![Cheat sheet: Variables: Giving a Value a Name](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/09356ed764c1425bbdd3adca25d0b74f.webp)

- Category: Python
- Level: Novice
- Tags: Assignment (python), python, snake_case, Variable (python)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-variables-cheat-sheet
