Rules

Here are some of the rules to remember about variables:

  • Calculate once, keep the result to use later

The first thing is that you can use them to store values. You only have to do the calculation once, but you can keep the result around to use later.

  • Keep the same name, change the value

The second thing is that you can keep the same name for your variable, but give it different values.