AI engineering glossary · Python core

What is variable?

Variable: A name that refers to a value stored in memory. You create it by assigning a value to the name, and later code uses the name to read or replace that value. Variables let a program keep track of data such as counts, text or results as it runs.

Level: beginnerTopic: Python core

Variable: an example

price = 499 creates a variable called price that refers to the integer 499; later price = price * 2 makes it refer to 998.

Related terms

More Python core terms

Where you learn it

Variable is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.