Lists and Data in Programs
Computing · Programming & Algorithms · ages 11–14
Storing many values in a list, going through it with a loop, and computing something from it: the highest score, an average, how many words start with a letter
At what age?
Usually at ages 11–14. The age is a guide: what decides whether a child is ready is the foundations below.
How do you know your child has learned it?
- Store a set of values in a list and loop through it
- Compute a total, an average or a maximum from a list in code
- Explain when a list is better than many separate variables
A quick check
Could your child write code that takes a list of test scores and prints the highest and the average?
What comes first?
- Writing Code in Text (needed): Lists are worked with in text code
- Averages and Spread (helps): Computing an average needs the idea of the mean
Where to learn it
- Raspberry Pi Projects (Course · Chinese & English · ages 8–14 · Free): The Raspberry Pi Foundation's free project library (in Chinese too): build something that works, step by step, in Scratch, Python or HTML.
- Hello World! Computer Programming for Kids and Other Beginners (3rd edition) (Book · Chinese · ages 10–14): A Python introduction written by a father and son, in conversation, for parent and child to read and type along together; the third edition is fully updated to Python 3 and adds a chapter on the internet.