Variables are labeled boxes
A variable is a named place where the computer remembers something.
Think of a box with a label on it. The label is the variable name. The thing inside the box is its value. You can look at the value later, or replace it with a new one.
- Name the information.
- Store a value.
- Use the name later.
- Change the value when the program needs to.