First step: give a number a name
Scenario
You are a data scientist. A small clinic counted 12 patients this morning. We want Python to remember that number for us.
Question
Put the number 12 into a box called patients, then ask Python to show it.
Your task
- Read the first line: patients is the name of our box
- The = sign puts 12 into that box
- print(patients) shows the number inside the box
Beginner · Data Filtering & Record Counting — question 1 of 30
1. Choose your dataset
Pick an industry and a size. Your code and results change to match.
First step: give a number a name
Put the number 12 into a box called patients, then ask Python to show it.
Your code cell is below. Press Check my answer to run the cell — the result appears as Out [1].
💡 Explain my whole code, line by line (hover any word in the editor for a tip)
🌈 In short — no coding words
Altogether: this script runs top to bottom, one line at a time, building up the answer step by step.
Dataset & schema
morning_count
The tiny starter data. Bigger data scrolls.
Fields
| patients |
|---|
| 12 |
One column is one kind of information. One row is one observation.
$ Press “Check my answer” — results appear here.Your next steps
Each item turns green when your answer includes it.
- Makes a box named patients
- Shows what is in the box