VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How Singapore Education Works | How Do Students Learn Computational Thinking? Coding, Debugging and Problem Solving

Library search computer terminal inside the National Library Building in Singapore.

HOW SINGAPORE EDUCATION WORKS · Computational Thinking and Coding

Find your next learning step

Choose the question closest to your situation, or read the full guide in order.

Full chapter index · Practice and checking · Sources and next reading · How Singapore Education Works

Tell a friend how to draw a square without showing them the picture. It sounds easy until they ask which way to turn, how far to move and whether they should stop after three sides. The missing instructions have arrived for inspection.

Computational thinking involves representing a problem clearly enough to work through it systematically. Coding gives those ideas a form a computer can execute. The learning includes breaking a task into parts, identifying relevant information, designing steps and checking what happens when those steps run.

In Singapore, students can encounter these ideas through Code for Fun and other school learning opportunities. The deeper aim is an understandable process: a learner who can explain the logic, find an error and apply the method in a new situation. Typing quickly is optional; thinking clearly does most of the heavy lifting.

The choices at a glance

RoutePurposeUseful first check
Early yearsFollow and explain a short sequencePlayful task and clear starting state
PrimaryPredict, trace and test simple instructionsActual school programme and suitable activity
Secondary and universityRepresent data and inspect assumptionsInputs, outputs and test cases
Work and adult learningApply a method to a defined taskPurpose, preparation and responsible use
A quick route map; confirm formal programme conditions with the responsible institution.

Full chapter index

Understand the local learning route
  1. Computational thinking is a way of working through a problem
  2. What Code for Fun adds in Singapore
Build sequences and precise rules
  1. Early years: sequence and predict through play
  2. Primary school: understand a sequence before adding more blocks
Trace values and debug the first error
  1. Conditions: make the rule precise
  2. Repetition, variables and a trace you can follow
  3. Debugging: find the earliest point where the behaviour diverges
Use data, AI and global applications
  1. Secondary school: represent data and test assumptions
  2. AI-generated code still needs an explanation
Practise independently across generations
  1. University, careers and the world connection
  2. Adult and intergenerational practice
  3. Questions parents and learners ask

CHAPTER 1 OF 12 · Understand the local learning route

1. Computational thinking is a way of working through a problem

Back to contents

A large problem can often be separated into smaller tasks. Relevant features can be represented while unnecessary detail is set aside. A sequence of steps can then be tested against examples. These are useful habits when building a program and when planning an ordinary process.

The important limitation is that a neat process can still answer the wrong question. Before designing steps, establish the purpose and the conditions. A classroom book-sorting method might organise by author, subject or reading level; each is sensible for a different need.

An algorithm is a specified procedure. A program expresses instructions in a form a computer can run. Debugging investigates why the observed behaviour differs from what was intended. These terms become easier to remember when learners can connect each one to something they have actually done.

The international computational-thinking guide explains the broader educational idea. This Singapore guide focuses on local learning routes, age-appropriate practice and the connection to study, work and everyday life.

Contents · Next chapter

CHAPTER 2 OF 12 · Understand the local learning route

2. What Code for Fun adds in Singapore

Back to contents

IMDA's Code for Fun overview describes a programme jointly offered with MOE, connecting computational thinking, coding, digital making and emerging technologies. The programme is one concrete route into the subject rather than a complete description of every school's digital curriculum.

MDDI's October 2024 announcement explains the introduction of elective AI for Fun modules from 2025. It also distinguishes upper-primary provision from optional secondary-school provision. Families should ask their own school about the current activities and arrangements instead of assuming that every student follows the same sequence.

An introductory programme creates an opportunity to explore. Continued understanding depends on what the learner can explain and do afterwards. Ask them to describe a condition, trace a repeated action or show how they found a mistake, rather than asking only whether they enjoyed using the equipment.

The digital-learning guide covers tools and learning arrangements such as SLS and personal learning devices. Accessing a digital platform and understanding programming logic are different learning tasks, although both may happen on the same screen.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 12 · Build sequences and precise rules

3. Early years: sequence and predict through play

Back to contents

Young children can practise giving and following instructions without creating an account or using a screen. Arrange a few picture cards showing an everyday sequence, then ask what changes if two cards are swapped. Keep the activity playful and safe.

For an original exercise, use a toy figure on a small drawn grid. Give one instruction at a time: move forward one square or turn right. Agree which way the figure faces before beginning. Otherwise, “forward” can become a lively family disagreement with no useful technical resolution.

Ask the child to predict where the figure will finish. Then act out the instructions and compare the result. If it differs, revisit the steps together. The goal is noticing that a sequence has consequences, not attaching a label such as “good at coding” to a four-year-old.

An adult can demonstrate one short sequence, help with another and later invite an independent attempt. Change the starting direction only after the basic task is understood. This makes the new difficulty visible rather than quietly adding several unfamiliar demands at once.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 12 · Build sequences and precise rules

4. Primary school: understand a sequence before adding more blocks

Back to contents

In an introductory coding activity, the screen can become crowded very quickly. Begin with a small sequence whose purpose the learner understands. Ask what each instruction changes and why it appears in that position.

A fictional character starts at position zero and moves two spaces three times. Its positions after each move are two, four and six. A learner who can trace those intermediate states has more evidence of understanding than someone who only remembers the final answer.

Now change the movement to three spaces, still repeated three times. The final position becomes nine. Ask the learner to predict before running the program. If the prediction is wrong, compare the trace with the instructions instead of adding more blocks until the output happens to look right.

Resources such as Scratch and ScratchJr have separate guides in the eduKate ecosystem. Choose an activity suited to the learner's reading, motor and reasoning needs, and check the resource's current conditions before use.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 12 · Trace values and debug the first error

5. Conditions: make the rule precise

Back to contents

A condition determines which action follows. “If the score is at least ten, display a celebration” is different from “if the score is greater than ten”. A score of exactly ten reveals the difference immediately.

For a fictional points game, define the rule as follows: scores below ten display “keep practising”; scores of ten or more display “target reached”. Test nine, ten and eleven. These three examples examine both sides and the boundary of the rule.

Ask why testing only a score of twenty would be insufficient. It checks one situation but does not establish what happens at the threshold. Boundary examples help learners inspect the precise meaning of words and symbols.

Connect this to reading instructions elsewhere. “Before”, “by”, “up to” and “at least” also matter in school notices and application conditions. A coding exercise can provide a useful comparison, while the actual notice must still be interpreted in its own context.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 12 · Trace values and debug the first error

6. Repetition, variables and a trace you can follow

Back to contents

Repetition describes doing an action more than once. A variable stores a value that the process may read or change. These concepts become less mysterious when the learner records their values step by step.

In an original exercise, begin with a counter at zero. Repeat the instruction “add two to the counter” four times. The values become two, four, six and eight. Ask the learner how the result changes if the counter begins at one: the final value is nine.

The starting value is part of the problem. So are the number of repetitions and the update rule. A mistake in any one of them can produce a result that looks plausible. Record all three before trying to explain the output.

Once the learner understands, change one feature at a time. Then offer an unfamiliar example, such as tracking items added to a collection. This checks whether the concept transfers beyond the exact animation in which it was first introduced.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 12 · Trace values and debug the first error

7. Debugging: find the earliest point where the behaviour diverges

Back to contents

Debugging begins with a clear account of the intended and observed behaviour. “It doesn't work” is a starting feeling, not yet a useful description. “The counter increases twice when I click once” gives an investigation somewhere to begin.

Reproduce the problem with a small example. Inspect the sequence and the values at each relevant step. Find the earliest point where the observed state differs from the expected state. Later mistakes may be consequences of that first difference.

For a fictional program intended to move six spaces, a learner uses three repetitions of a two-space move but accidentally adds another two-space move afterwards. The trace reaches six correctly and then continues to eight. The extra final instruction is the first divergence from the intended stopping point.

Change the suspected cause and test again. Also test a nearby case to see whether the repair preserves the rest of the intended behaviour. This is more informative than changing several unrelated instructions at once and losing track of what actually fixed the problem.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 12 · Use data, AI and global applications

8. Secondary school: represent data and test assumptions

Back to contents

Secondary learners can tackle more complex problems while keeping the same discipline. Define the input, the intended output and the assumptions. Then decide how the information will be represented and which cases need testing.

Consider an original fictional task: count how many books in a list have been returned. What values represent “returned”, and what happens if a record is blank? A program cannot resolve an undefined meaning merely because its syntax is correct.

Use invented data for a classroom trial. Include an ordinary case, an empty list, a missing value and a case at any threshold used by the rule. Discuss what the program should do in each situation before treating an unexpected output as a technical mystery.

Projects can connect with Mathematics, science investigations, design and other subjects. The ALP and LLP guide explains one part of the school-programme landscape. Actual computing activities and progression options depend on the school and programme.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 12 · Use data, AI and global applications

9. AI-generated code still needs an explanation

Back to contents

An AI tool can produce code that looks convincing and sometimes runs. The learner still needs to establish whether it solves the intended problem, handles the relevant cases and follows the rules of the learning setting.

Use a small approved exercise. Ask the learner to explain the inputs, the steps and the output before running the suggested code. Then test a boundary case and a deliberately unusual input. Follow the teacher's instructions on whether and how AI assistance may be used or disclosed.

If nobody in the group can explain a section, mark it as an uncertainty and investigate. Adding more generated code around an unexplained part can make the result harder to inspect. A shorter example that the learner understands often provides a better learning step.

This connects directly to information literacy and AI source checking. In both settings, a fluent response is something to examine. Understanding the evidence or logic is what makes it usable.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 12 · Practise independently across generations

10. University, careers and the world connection

Back to contents

At university and work, computational methods can support many subjects and roles. A researcher may process observations; a designer may build a prototype; an administrator may organise a repeatable task. The depth of programming required differs substantially by purpose.

Choose learning around a real capability. “I need to clean a particular kind of dataset” is more specific than “I should learn all the technology”. Check the prerequisite knowledge, practice and assessment in the course being considered. An introductory activity should not be mistaken for professional readiness.

Global collaboration makes clear documentation useful. Someone working in another place or time zone needs to understand the input, assumptions, steps and known limitations. A process that works only when its author is standing beside it is difficult to share.

The skill also includes recognising where automation is inappropriate or incomplete. A program can apply a defined rule consistently while the rule itself misses a person's circumstances. Human judgement, subject knowledge and responsibility remain part of deciding how a tool should be used.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 12 · Practise independently across generations

11. Adult and intergenerational practice

Back to contents

Adults can begin with an ordinary process: sorting a personal book list, planning a sequence of tasks or checking a small fictional dataset. They do not need to adopt a child's game or rush into a professional course to start understanding the ideas.

An intergenerational activity might ask a younger person to explain a simple program while an older relative tests whether the instructions are unambiguous. A person unfamiliar with the software may notice an assumption its creator has stopped seeing. Let the questions improve the explanation.

Keep real financial, health and account information out of a practice project. Invented data usually supports the learning just as well. A learner should not have to expose private records to understand a loop or a condition.

For a final independent check, ask the learner to design a three-step sequence, explain a threshold and trace a repeated update without the earlier example in view. Revisit a weak step with a smaller task, then return to the original problem. Progress becomes visible in what the learner can explain unaided.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 12 · Practise independently across generations

12. Questions parents and learners ask

Back to contents

Does every child need to become a programmer? No. Computational thinking can support clear problem solving even when the eventual career involves little coding. The appropriate depth depends on interests, goals and the learning route.

Is an early start always an advantage? An activity is useful when it fits the learner and develops understandable skills. Beginning with playful sequences is different from pushing a young child through terminology or screen tasks they do not understand.

What if the learner keeps copying a working example? Ask for a prediction, a trace and a small change to the original conditions. These reveal whether the logic is understood. If the explanation breaks down, teach the specific missing step before adding complexity.

What is a good sign of progress? “I expected this value, but it changed here, so I checked this instruction.” That explanation shows a method the learner can use again, even when the next program looks quite different.

Contents · Previous chapter · Education hub

Sources and next reading

Singapore programme references checked on 21 October 2026: IMDA Code for Fun, IMDA's primary-school overview and MDDI's announcement of AI for Fun modules. The announcement is dated 1 October 2024 and describes changes from 2025; ask the school or provider about current delivery. The exercises in this guide are original teaching illustrations.

Continue with Scratch for students, the international computational-thinking education guide, innovation and entrepreneurship learning and the How Singapore Education Works hub.

Continue through the learning journey

Sustainability and Eco Stewardship · Intergenerational Learning · Academic Records Across Borders