Mirror Blocks
Key Stage 3 Β· Computing
Python basics
0 / 13
Test yourself Printable worksheet
Key words
- variable
- a named store for a value
- string
- text data, in quotation marks
- integer
- a whole number
- selection
- choosing which code runs using if
- iteration
- repeating code using a loop
- syntax error
- a mistake in the rules of the language, so the code will not run
For grown-ups
The Key Stage 3 computing curriculum requires pupils to use at least two programming languages, at least one text-based. This lesson introduces Python: variables, input and output, data types, selection and loops.
Try at home
- Install a free Python editor, or use a free online one, and try print and input together.
- Write a tiny quiz program that asks one question and says if the answer is right.
- Talk through a daily routine as if/else decisions (if raining, take a coat).
- Spot loops in real life: brushing teeth for 2 minutes, laps of a track.
Ask your child
- What is the difference between = and ==?
- Why do we need int() with input()?
- What is a loop used for?










