Variables — naming things
P40.text-and-numbers.04 · Audience: guest, language-pro, it-ml · Prerequisites: True / false and simple comparisons
You have already been using names — word, first, tally — without anyone
calling them what they are. On a quote sheet you write "rate" once and reuse it
down the column. This module names that habit: the variable — built up one
idea at a time.
ⓘ Concept: x = 5 means 'let x stand for 5'
x = 5 reads as "let the name x stand for 5". A good name (word_count) tells you what the value is; a bare x tells you nothing. You have already been reading names like first and word — now you know what they are called.Why it matters — Naming values is what makes code readable — a good name says what a value is — and it is the habit every later line depends on.
Ask the mentor about this module
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Keeping your files on this device
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
🎓 Practice ladder
1 graded rung · ~5 minYour turn: price a translation job — name the word count, then reuse both the rate and the count (no retyping numbers) for a normal fee and a double-size rush fee. Press Run.
Explorer rung — name it once, reuse it
Loading exercise…
My notes on this module
Loading your notes...
Where next?
Go up a level