Learning to Code With AI Without Skipping the Learning
- Ages 8-9
- Ages 10-12
A ten-year-old with a code assistant can produce a working program in a language they cannot read. It runs. It looks like an achievement. Then it breaks, and there is nothing to fall back on, because nothing was learned.
This is the one area where AI can quietly remove the thing you were paying for. The fix is a rule, and then some tools that suit kids under thirteen.
The rule
Explain the line or delete the line.
Any code that goes into your child’s project has to be code they can describe. Not defend, not derive from scratch, describe: what does this do, and why is it here? Code they cannot explain comes out.
This survives into professional work, where it is the same rule with a different name.
What to build with, by stage
Blocks with a model attached
Scratch is where most kids start, and Machine Learning for Kids is what makes it interesting again around age nine. Your child trains a classifier on their own examples, then uses it inside a Scratch game. Free, built with teachers in mind, and the projects take a few sittings rather than ten minutes.
Project that lands well: a game that reads the player’s webcam gesture, or a chatbot sprite trained to recognize compliments and insults. Both force your child to confront the training data, which is where the real thinking happens.
No-code model training
Google Teachable Machine trains an image, sound, or pose model in the browser with no coding at all, then exports it for use elsewhere. Good as the first step of a project and good on its own for a younger sibling.
Structured courses
code.org is free, thorough, and used in classrooms worldwide, with AI units aimed at this age. Tynker is paid and bridges blocks to Python and JavaScript with more hand-holding, which some families find worth the cost.
Something that runs on a phone
MIT App Inventor builds real Android apps from blocks, including image-classification projects that put a trained model into an app your child can install. The moment a kid holds their own app on a phone is worth the setup effort.
Using a chatbot without losing the plot
For a child under thirteen this runs on your account, since ChatGPT and Gemini set that floor and Claude requires eighteen.
Prompts that teach:
- “My Scratch sprite disappears when I click it. What are three things that could cause that? Do not tell me which one it is.”
- “Explain what this line does like I am ten.”
- “I want to make a game where the cat catches falling apples. What are the pieces I need to build, in order? No code.”
Prompts that hollow out the learning: anything starting with “write me a program that.” Once your child has seen a complete solution, the problem is gone and so is the thinking.
Debugging is the good part
Kids hate debugging until someone reframes it. An AI helps most here, because it is patient in a way that a parent at 9pm is not.
Teach the sequence: read the error out loud, say what you expected to happen, say what happened instead, then ask. Half the time your child solves it while saying the second part, which is a lesson worth learning early.
When your child asks about the real thing
Older kids hear about professional code assistants and want in. Most of those services require an account at thirteen or older, and the age gate is worth honoring rather than working around. There is also a good argument for waiting: a child who has spent two years writing their own loops gets far more out of an assistant than one who never has.
You can say that to your child as a reason rather than a rule. The tool will still be there.
Where it connects
The model-training projects overlap with AI for science and STEM, and the habit of checking what a model produces is the same one built in teaching kids that AI can be wrong. For where coding sits in a broader plan, see our guide for ages 11 to 12.