Variables and types
A variable is a name you stick onto a piece of information so you can talk about it later. Types are the different kinds of information you can store.
Think of it likeA luggage tag. The tag is not the suitcase; it just lets you refer to the suitcase without carrying it around.
You write price = 20, and from then on the name price refers to the number 20. Later you can write price = 25 and the name refers to something else. Nothing is permanent.
There are four kinds of information you meet immediately. Whole numbers, called integers — 3, 100, -7. Numbers with a decimal point, called floats — 3.5, 0.001. Text, called strings, always written inside quotes — "hello". And true-or-false values, called booleans — written True and False, capitalised.
The important mental shift: a variable does not contain the value, it refers to it. This sounds like hair-splitting now. It becomes the single most important idea in the whole roadmap when you reach and trees from week 15 onwards, because those are built entirely out of things referring to other things.
Where you meet it in real softwareEvery program stores state — a user's name, a running total, whether someone is logged in. That is all variables.