Module 8 - The variables
1 min
A variable is a box in which we store information. It's as simple as that. It's like a container where we put data that can be change.
For example: in a football or basketball match, these would be the little boxes where we write down how many points each team has scored. If a team scores a goal, we will put 1 in their box, and zero in the opponent's box. If the opponent draws, we will put 1 - 1 in the box. That is a variable.
What is it for? To store in the same place information that can change continuously. Like the results of a match. It's the ideal place to keep the scores. Jordi will explain it easier...