Skip to main content

Teaching coding to preschoolers: where to start?

The PEEMS team · Published November 10, 2026 · 6 min read

A first level for preschoolers: driving Pemi with arrows

For preschoolers, coding does not start with code but with play and movement. This article suggests how to go from screen-free activities to picture blocks, how long sessions should be, and what parents can do.

Many parents hear "coding for preschoolers" and think it sounds far-fetched: my child cannot even read yet, how could they type code? The answer is that they do not type code. At this age, coding starts with familiar things: doing steps in order, repeating something, choosing what to do based on a condition. Those are the foundations of computational thinking, and children can get to know them through play.

This article suggests a gentle way to begin, from screen-free activities to games on a device, and what a parent's role is along the way. We make no promises about results and give no fixed age: every child has their own pace.

What does "coding" mean for a young child?

For a small child, "coding" means giving instructions in order to reach a goal and noticing when the instructions are wrong so they can be fixed. No letters and no keyboard are needed. A child who can put picture cards in the order "put on a shirt, put on a hat, go to the door" is already meeting the core idea: a machine does exactly what we tell it, in exactly that order.

Three main ideas suit young children:

  • Sequence: what comes first and what comes next.
  • Repetition: doing the same thing several times ("take three steps forward").
  • Conditions: if this happens, do that ("if it rains, take an umbrella").

Step 1: Start without a screen

The best way to begin is often to play together, with no device at all. You could try:

  1. "Robot and controller". You give the commands ("two steps forward, turn right") and your child is the robot who follows them to a hidden toy. Then swap: your child gives the commands and you are the robot, doing exactly what they say, even when a command is missing.
  2. Sequence cards. Draw or print the steps of a familiar task (brushing teeth, planting a seed), shuffle them, and let your child put them in order.
  3. Spotting patterns. Thread beads in a red, blue, red, blue pattern and ask: "What colour is the next bead?"
  4. Dancing to a beat. Clap and stamp to a repeating pattern so children feel "repeat" in their bodies.

Each activity needs only about 10 to 15 minutes. What matters is that it is fun. If your child is not interested, stop and try another day.

Step 2: Moving to picture blocks on a device

Once your child is comfortable with the idea of "giving instructions in order", a game that uses picture blocks (blocks that are images, with very little text) can be a natural next step. In Pemi CS, children guide Pemi, PEEMS's robot character, and every command they choose appears as a picture block. They see at once what Pemi does, so they understand why something worked or did not.

A Pemi CS level for young learners: arrow buttons drive Pemi to the flag and each move becomes a block

Here is how one level for young children works: the child uses arrow buttons to drive Pemi toward a flag. Every move is recorded as a block, and then the child presses Run to watch Pemi repeat exactly the route they drove. They learn that a "program" is just a chain of instructions that can be played again.

Later levels add ideas such as repetition and finding mistakes, a little at a time, and building on routes like the one below.

A Pemi CS level for young learners: a row of direction blocks sends Pemi along a path past gems to a flag

There is no need to hurry. Staying on one level until your child finds it easy before moving on is completely normal.

Pemi CS has more than 3,000 levels in 12 courses, from preschool to Grade 12, so a child can start very gently and carry on as they grow. Pemi CS needs no special hardware: an ordinary computer that browses the web is enough. We recommend a computer or tablet; the phone interface is not optimised yet.

How long should a session be?

There is no right number for every child. A few general principles:

  • Short and regular beats long and crammed. A short session with a clear stopping point is usually easier.
  • Stop while they are still interested. Leave your child looking forward to next time rather than playing until they are bored.
  • Agree the stopping point first. "When this level is done, we take a break" avoids abruptly switching the device off.
  • Mix in screen-free play, like the games in step 1, along with movement, books and drawing.

Time on a device should suit your child's age and your family's rules.

What can parents do?

You do not need to know how to code. Your role is companion:

  • Sit with your child, especially in the first sessions, to see what they are playing.
  • Let them think before you suggest. A question like "Where do you think Pemi will go next?" is better than giving the answer.
  • Treat mistakes as normal. When Pemi goes the wrong way, laugh together and ask "Which part shall we fix?" How you react to a mistake teaches more than the result does.
  • Praise the process, not only the result. "You tried three different ways" encourages more than "You are so clever".
  • Do not compare with other children. Everyone moves at their own speed.

What to avoid

  • Pushing when your child does not want to. Interest comes first.
  • Expecting a child to "know how to code" very early. At this age the aim is to get to know and enjoy a way of thinking, not to write programs.
  • Letting a device replace free play. Playing outside, building with blocks and telling stories all remain very important.

PEEMS is a supplementary programme: another enjoyable way to learn alongside the other activities and learning in a child's life, not a replacement for them.

Frequently asked questions

Can a child who cannot read yet learn coding? Yes. For young children, pictures and actions stand in for words. Picture blocks are designed for exactly this need, and the screen-free activities need no words at all.

What age should we start? There is no single age for every child. From preschool, games about sequence and patterns can begin. Go by your child's interest and comfort rather than a number.

How long a day should my child play? We do not give a fixed number. Short, regular sessions with a clear stopping point, mixed with screen-free play, are usually easiest to keep up.

My child enjoys it but does not seem to understand yet. Is that a problem? No. Getting to know it and enjoying it is enough at the start. Ask open questions so they practise explaining, and let them go at their own pace.

Want to try it together?

Pemi CS is open. If you are a family outside Vietnam and would like to hear from us, register your interest by email.

Keep reading: Drive Pemi with arrows: a preschooler's first step · Find the bug: a first debugging task for Grade 1

The PEEMS team

Nov 10, 2026

Before they can read, children can meet sequencing: press arrows to drive Pemi and each move appears as a picture block. Ideas for playing and talking together.

Nov 10, 2026

Bugs are normal in programming. A Grade 1 level where children find and fix a mistake in a picture-block program, plus ways to encourage your child.

Nov 10, 2026

Instead of placing every plank one at a time, children tell Pemi to repeat. A loop level for Grades 1–2 and ways to talk about loops with your child.

Nov 10, 2026

There is no fixed age for learning to code. What matters is a way of learning that suits your child: young children learn through pictures and play, older ones move toward text blocks and Python.