Guided pathThis is part of Understand Transformers & BERTBack to the path

Variables — naming things

P40.text-and-numbers.04 · Audience: guest, language-pro, it-ml · Prerequisites: True / false and simple comparisons

Real LLM grading for this pageLLM grading (this page):

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.

Step 1 / 3A variable names a value
ⓘ 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.

Ctrl/Cmd + Enter to send

🎓 Practice ladder

1 graded rung · ~5 min

Your 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…

Where next?