Skip to content
Tech Dictionary
DictionaryThe dataContribute
Dictionary/Programming
CodeBeginner

Variable

Also known as

A name associated with a value that a program can use.

Think of it this way

A labeled box; whether you can swap its contents depends on the language.

In the real world

The variable score might hold the number 42.

One thing to remember

Some bindings are mutable; others cannot be reassigned.

Related

Data typeFunction

Go a little deeper

  • Python language tutorial (opens in a new tab)
  • MDN Glossary (opens in a new tab)
Improve this entry

What do we build for, if not to lessen each other’s hardship?

Tech Dictionary