9 November 2026 · 3 min read
Artificial intelligence explained to children: understanding it by programming it
Children are growing up with voice assistants, video recommendations and tools that write for them. For many, artificial intelligence is a magic box that "knows". That is exactly what worries parents: how do you keep a critical mind about a tool you do not understand? Our conviction: the best way to demystify AI is to program a small one yourself.
What a child can really understand about AI
There is no need to talk about giant neural networks. Three ideas are enough to change how an 11 or 12-year-old sees it:
- AI is first of all data. A machine that "recognises" a cat has seen thousands of examples. If the examples are poor or incomplete, it gets things wrong.
- It learns by adjusting numbers. "Training" an AI means changing weights step by step so that its answers match the examples. It is not magic, it is repeated calculation.
- It predicts, it does not know. An AI that writes text picks the most likely word after the previous ones. So it can be wrong with great confidence.
Once these ideas are understood, a child asks different questions: with what data? Who chose the examples? What happens if you show it something new?
Programming their own AI, in Python
In the Coding Lab, the Artificial intelligence world has children build these ideas one by one, in real Python:
- From rules to scores. They start with an "AI" made of hand-written rules, then move on to a score that weighs several clues.
- Training. The child programs a small neuron, trains it on examples and watches its errors decrease.
- Prediction. Nearest neighbour, then predicting the next word from a short text: the principle of writing tools, in miniature.
- Shapes and chatbot. A workshop has them recognise shapes and build a simple chatbot, to see up close what it understands and what it does not.
All of this works without any external AI service: the child's code runs in their browser, cut off from the internet. They do not "chat" with an AI, they build one, and that makes all the difference.
From what age?
The basic ideas (data, rules, examples) can be discussed from 9 or 10. Programming their own AI in Python requires the basics of the language: variables, loops, lists, functions. In the Lab, the AI world is mainly for 12 to 15-year-olds, after the Beginner to Advanced Python levels. A younger child can start with Smart Blocks or with Python for kids, and get there afterwards.
How to talk about it at home
After a session, ask your child: "What did your AI get wrong? Why?" That is often where the most interesting conversation begins, about data, fairness or how much you can trust a machine. The Lab's parent dashboard shows the steps passed, which gives you a concrete starting point.
In practice
The Artificial intelligence world is part of the Coding Lab, along with Smart Blocks, Scratch, Python and eight other workshops, from CHF 49 per month (12-month commitment) or CHF 490 per year. It is included for children who take our Solo or Duo classes with a teacher. To understand the link between programming and school, read also maths and programming, why combine them.