Step 1 of 15 · Pre · What is a value, anyway?
Meet the values
First — what *kinds* of things can a program even hold?
Step 1 / 9intro
Before we talk about anything else, we need to meet the things a program can hold.
A number is any count or measurement: a score, a price, an age, a step count.
Text is any group of letters or words, like a name or a short message — programmers also call it a string.
A yes/no answer is its own family — only two values exist: yes or no, on or off, true or false.
A list is an ordered line-up of things, just like the items written on a shopping list.
A bundle groups many facts about one thing — for a person, that could be their name, age, and city all together.
These five families cover almost every value you will ever meet, no matter what kind of program you build.
Now that we know what values are, the next big question is simple: where do they live?
Check yourself
Quick check
Which of these is a yes/no value?
Match the pairs
Match each value to its family:
