Hong Kong · Age 9 · Usually P4

Coding classes for 9 year olds in Hong Kong: the year school coding begins

At nine, most Hong Kong children are in P4, the year the EDB's coding module starts. That changes the question. It is no longer "should my child code?" but "what will school cover, and what comes on top?" We teach nine year olds one to one, live online, in English, usually taking them from blocks to their first typed Python while school teaches the concepts in class.

Live classes since 2020 · 10,000+ students worldwide · Hong Kong classes run one to one, online, in English

In one paragraph

Coding classes for 9 year olds should build on what school starts: in Hong Kong a nine year old is usually in P4, where EDB schools teach about 10 to 14 hours of block coding a year on abstraction, algorithms and automation. Nine is also when many children are ready to type real Python. Modern Age Coders teaches nine year olds live online, one to one, in English, at Hong Kong times your family picks, so the child moves faster and further than a class period allows.

Courses first

Which coding class suits a nine year old?

Nine opens our first typed-code courses. Most Hong Kong nine year olds who come to us start on one of these three, chosen by what the child wants to make.

P4 in Hong Kong

When does coding start in Hong Kong schools?

In P4. The EDB's Enriched Module on Coding Education for Upper Primary Level was issued for P4 with EDBCM 109/2023, followed by modules for P5 and P6. Publicly funded schools are asked to give every upper primary pupil 10 to 14 hours of coding a year.

How much time that is

The EDB's 2020 supplement suggests schools "allocate one lesson (35/40 minutes per lesson) per week at each upper primary level". By our arithmetic, 10 hours in 40-minute lessons is 15 lessons, and 14 hours in 35-minute lessons is 24. So a P4 child gets somewhere between about 15 and 24 short coding lessons in the school year.

CoolThink@JC, whose materials the EDB adapted for primary schools, describes "14+ hours of computational thinking and coding education in formal ICT lessons annually to P4-6 students".

What it is for

The module "covers basic computational thinking concepts, namely abstraction, algorithm and automation" (EDBCM 109/2023). The supplement is candid that the goal "is not to train and nurture computer programmers" but to give children hands-on problem solving.

That is a sound aim for a whole class. It also leaves room: a child who enjoys it will want to type real code, build bigger projects, and get help when stuck, which a shared 35-minute lesson cannot always give.

For the full P4 to P6 picture, see our online coding classes for Hong Kong kids page; for the same age outside Hong Kong, our coding for 9 year olds guide.

What the EDB asks

What does a P4 child learn in school coding, and what does that look like at nine?

The EDB's 2020 supplement lists learning contents for P4 to P6 under abstraction, algorithm and automation. On the left are some of its own phrases; on the right, what a nine year old does with each in our lessons.

EDB primary coding learning contents, and what a nine year old does with them
In the EDB supplement's wordsElementWhat a nine year old does with us
"Recognise the pattern"AbstractionSees that a square is "walk, turn" four times
"Know how to decompose the problem"AbstractionSplits a house drawing into a square and a triangle
Comparison and logical operatorsAlgorithmWrites "if score > 10" in a game
Repetition of process (iteration)AlgorithmReplaces copied lines with a loop
Storing and changing a variableAlgorithmKeeps a turn angle in a variable and changes it
"Develop appropriate steps and data to test programs"AlgorithmTries 3, 4, 5 and 9 sides to test a polygon program
Automation and physical objectsAutomationTalks about where programs run in daily life; we teach no hardware

Source: Curriculum Development Council, Computational Thinking: Coding Education, Supplement to the Primary Curriculum (2020), chapter 3, learning elements for key stage 2; EDBCM 109/2023. Read 23 November 2026. Quoted phrases are the EDB's; other cells are our summaries. The right column is our practice.

What school usually covers well

The vocabulary and the big ideas: sequence, condition, loop, variable. Block tools such as Scratch and App Inventor, which the supplement names. Working in pairs, explaining ideas, short structured tasks.

For most children this is a genuinely good start, and we build on it rather than repeat it.

What a one to one class can add

Typed code, which school rarely reaches in P4. Time to be stuck and get unstuck with someone watching. Projects the child chooses. And a pace that fits: some nine year olds race through the school unit in weeks.

Our one-on-one coding tutor page explains how a private lesson diagnoses and adjusts.

A contest for P4 to P6

Can a nine year old enter a coding competition in Hong Kong?

Yes, through school. The Hong Kong Primary Schools Olympiad in Informatics (HKPSOI), run by HKACE, HKOI and MERS, is open to P4 to P6 pupils whose school applies. It uses Blockly, so a nine year old needs no typing.

HKPSOI 2026/27 for a P4 child: dates and rules from the organiser
ItemWhat the organiser publishes
Who can enter"All primary schools in Hong Kong may apply"; schools may let P4 to P6 pupils log in
LanguageBlockly, a block language suited to primary pupils
Heat format10 days, each day a 3-minute online quiz game
Heat dates, 2026/27Monday 7 December to Friday 18 December 2026
Who goes throughEach school's top four P4 to P6 scorers form a merged list; not more than 180 contestants advance
Final, 2026/27Saturday 20 February 2027: 1 hour of problems on a tablet computer

Sources: HKOI website, HKPSOI Introduction, Rules, 2026/27 Heat Event and 2026/27 Final Event pages, read 23 November 2026. We are not connected with HKPSOI, HKOI or the organisers, and we never promise a result.

Is it worth it at nine?

For a child who likes puzzles, often yes. Three minutes a day for ten days is gentle, and a P4 child is up against P5 and P6 pupils, so there is no pressure to win. The value is the habit of reasoning quickly about block programs.

Entry is through the school, so ask the class teacher or ICT teacher whether your school has applied.

How we help

We do not drill past questions. We build the thinking such contests test: tracing what a program does, predicting loops, spotting the bug, with puzzles we write ourselves.

For older children, the secondary contest is a different world, run mainly in C++. Our Python course page for Hong Kong shows how children progress towards it.

A first typed lesson, in full

What does a coding class for a 9 year old look like?

A favourite first typed lesson: a pen that walks forward and turns. The child draws a square, then a hexagon, then tries to be clever with a hexagon's inside angle and gets a triangle. Working out why teaches loops, angles and testing at once.

  1. Walk a square by hand. The child stands up and walks four steps, turns, four steps, turns. How much did they turn in total? One whole turn: 360 degrees.
  2. Type the square. Forward 100, left 90, four times, then as a loop: for each of 4 sides, walk and turn.
  3. Generalise. For a hexagon, 6 sides. The child guesses the turn. Many say 120, because they remember a hexagon's inside angle from a maths book.
  4. Run it and look. Turning 120 six times draws a triangle twice. Only three different corners. The child has found a bug with their own maths.
  5. Fix it with the rule. A full trip turns 360 degrees, so each turn is 360 divided by the number of sides: 60 for a hexagon. Then the star: turning 144 five times goes round twice and draws five points.
A pen that walks and turns: why 120 degrees makes a trianglePython
# A pen that walks and turns: our own turtle-style lesson for a 9 year old, no graphics needed.
import math

def walk(sides, step, turn):
    x, y, heading = 0.0, 0.0, 0.0
    corners = set()
    for _ in range(sides):
        x += step * math.cos(math.radians(heading))
        y += step * math.sin(math.radians(heading))
        heading += turn
        corners.add((round(x, 2) + 0.0, round(y, 2) + 0.0))
    return len(corners), heading

for name, sides, turn in [("square", 4, 90), ("hexagon", 6, 60),
                          ("hexagon, inside angle", 6, 120), ("star", 5, 144)]:
    corners, total = walk(sides, 100, turn)
    print(f"{name}: turn {turn} x{sides}, total turn {total:.0f}, different corners {corners}")
print("turn for a 9-sided shape:", 360 / 9)

We wrote this version without graphics so it runs anywhere and prints what the pen did: the total it turned and how many different corners it visited. In lessons, children use Python's turtle module and watch the drawing appear. Paste it into any Python 3 editor; the output below is exact.

OutputOutput
square: turn 90 x4, total turn 360, different corners 4
hexagon: turn 60 x6, total turn 360, different corners 6
hexagon, inside angle: turn 120 x6, total turn 720, different corners 3
star: turn 144 x5, total turn 720, different corners 5
turn for a 9-sided shape: 40.0

The square and hexagon turn 360 degrees in total and visit 4 and 6 corners. The "inside angle" hexagon turns 720 degrees but visits only 3 corners: it traced a triangle twice. The star also turns 720 degrees, going round twice, and visits 5 points. For 9 sides the program works out the turn: 40 degrees.

What the child is really learning

Loops, by turning four copied lines into one repeat. Variables, by putting the number of sides and the turn in names. Abstraction, by finding one rule, 360 divided by sides, that fits every regular shape. Testing, by trying a value that should break a wrong rule.

And a lesson in trusting evidence: the drawing, not the maths book memory, decides whether the program is right. If turtle drawing misbehaves on your computer at home, our Python turtle troubleshooting page has fixes.

Practice for next time (ours)

1. What turn draws an octagon? 2. What happens with 6 sides and a turn of 90? Predict before running. 3. Draw a seven-point star; which turn works? 4. Make the program ask for the number of sides and draw any shape.

Answers: 1 is 45 degrees. 2 draws a square with two sides drawn twice (four corners visited). For 3, try turning 360 times 3, divided by 7, about 154.3 degrees, and see what you get.

AI in P4

What do P4 pupils learn about AI, and which tools may a nine year old use?

In P4, Hong Kong's pilot primary AI strand introduces prompts, how machines learn from examples, and spotting AI-made images. The makers of the main chatbots, meanwhile, set minimum ages well above nine.

Two P4 ideas from the strand

One suggested activity asks pupils how they know something is an apple, then shows that machine learning also works from examples and features (our English summary of the EDB's Chinese). Another asks them to look at pictures and decide which were made by AI, watching for odd details, mismatched backgrounds and scenes that make no sense.

Both fit coding well. A child who has written a rule for a shape understands the difference between a rule written by a person and one learned from examples.

Age rules for the tools

Neither OpenAI nor Anthropic offers its chatbot in Hong Kong, and their age terms rule nine year olds out anyway: ChatGPT users must be at least 13, with a parent's permission under 18, and Claude users must be 18. Python, Scratch and the child-safe learning tools in our AI course are what nine year olds use with us.

Our AI course for Hong Kong kids covers how machines learn at this age, and the AI tools age guide lists more than a hundred tools by age.

Choosing

Blocks or typed code for a nine year old?

Most nine year olds are ready to type, especially if they have used blocks before. Some are better served by one more term in Scratch. The free first class tries both, and the mentor tells you which with reasons.

A first course at nine: our guide
If your childWe suggestBecause
Has done Scratch and types reasonablyPython and AI for KidsReady for real syntax and turtle drawing
Has never codedA term of Scratch, then PythonIdeas first, typing second
Loves making things look goodWeb Development for KidsInstant visible results in a browser
Lives in RobloxRoblox Game CodingTyping with a game reward
Enjoys contests and puzzlesC++ for Kids, laterA careful start in a contest language

Our placement guide. Each course's own age range: Python and AI for Kids 9 to 12, Web Development for Kids 9 to 12, Roblox 8 to 14, C++ for Kids 9 to 12, Scratch 6 to 12.

One to one at nine

Every Hong Kong class with us is one child and one mentor. At nine, the biggest benefit is debugging: the mentor watches the child read an error message and asks the next good question, instead of fixing it.

It also lets the course follow school. If P4 coding is on loops this month, the mentor can stretch that topic rather than run ahead of it.

English at nine

Python and HTML are written in English words, and our India-based mentors teach in clear English at the child's pace. There is no Cantonese or Mandarin teaching.

More on that is on coding classes taught in English in Hong Kong.

Progress

How far can a nine year old get in a year?

Our own milestones for nine year olds moving from blocks to typed code. They guide placement and monthly notes; they are not a school level.

Nine year olds: our milestones from blocks to typing
MilestoneYour child canYou will see
1. Type and runType a short program and run itA greeting that uses their name
2. LoopTurn repeated lines into a for loopA square from three lines, not eight
3. Name thingsUse variables for numbers that changeSides and angle as names
4. RuleFind a general rule and code it360 divided by sides for any shape
5. TestChoose values that could break it6 sides and 90 degrees tried on purpose
6. ProjectPlan and finish a small programA drawing program that asks questions

For children

If you copied a line three times, make it a loop.

Believe the drawing, not your memory.

For parents

Milestone 4 is where maths and coding meet; praise the rule, not the picture.

Ask your child to predict before they run.

More courses

Nine more courses for a nine year old

Live, in English, and one to one for Hong Kong families. Bands follow the courses' own age ranges.

I

Blocks, still

If one more term helps

CBX / BLOCK / 01

Scratch Coding for Kids

Games with events and conditions.

Open the syllabus

CBX / BLOCK / 02

App Making for Kids

Phone apps from blocks, like App Inventor.

Open the syllabus

CBX / BLOCK / 03

Minecraft Coding for Kids

Blocks towards typed code.

Open the syllabus
II

Typed code

Ages 9 to 12

CBX / TYPE / 01

C++ for Kids

A careful start in a contest language.

Open the syllabus

CBX / TYPE / 02

AI Literacy for Kids

Training and testing simple models.

Open the syllabus

CBX / TYPE / 03

Vibe Coding for Kids

Plan in words, build, then check.

Open the syllabus
III

Maths beside code

Ages 9 and up

CBX / MATHS / 03

Hackathon Prep for Kids

An idea built against the clock.

Open the syllabus

Timing and setup

When do nine year olds in Hong Kong take their classes?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. The mentor works in India, where it is 2 hours 30 minutes earlier than in Hong Kong all year round.

After school

3:45 pm in Hong Kong is 1:15 pm in India.

Before dinner

A 5:45 pm class is 3:15 pm for the mentor.

Saturday afternoon

2 pm Hong Kong time is 11:30 am India time.

A laptop with a keyboard

Typing starts this year; a tablet is not enough.

Python, free

Installed in the first lesson, or used in a browser.

Squared paper

Useful for planning shapes and turns.

One mentor

The same person all course long.

A monthly note

What was learned and what comes next.

Assessment weeks

Move a class when school tests cluster.

Student work

What children build once they can type

Projects from students in our longer courses; the student labs page shows more.

NutriLife AI nutrition coach project screenshot

AI and ML

NutriLife

An AI nutrition coach that reads what you eat and works you toward a target.

by Bhavya · Open it

Misti AI chatbot for maths and coding screenshot

AI and ML

Misti

A chatbot that answers mathematics and programming questions, built and deployed by a student.

by Harshit · Open it

GuardianX AI internet safety assistant screenshot

AI and ML

GuardianX

An assistant that helps a young person recognise unsafe situations online.

by Vivaan · Open it

SkyCast weather forecast application screenshot

Web app

SkyCast

A weather forecasting site with live conditions for any location.

by Krish

Fees

Fees for coding classes at nine

The monthly fee shows in Hong Kong dollars, and you settle one month at a time, never for a whole term in advance. If the payment gateway charges anything extra, it is listed at checkout before you confirm payment.

Free first class

Free

no card required

  • A free first class, one to one
  • Your child types and runs a program
  • Book with no card
Book it

One to one

$1,200 HKD

a month, eight live classes

  • Your child and a mentor, nobody else
  • Pace set by your child
  • Times chosen by your family
Start here

What families say

Rated 4.9 across 547 Google reviews

Reviews from parents and students on Google, reproduced word for word.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Parents of nine year olds ask

Coding classes at nine: questions and answers

Is nine a good age for coding classes?

Yes, one of the best. Most nine year olds read and type well enough for real Python, and in Hong Kong P4 is when the EDB school coding module begins, so the ideas are fresh.

What coding does a P4 pupil do at school in Hong Kong?

Publicly funded schools are asked to give 10 to 14 hours of coding a year from P4, through the EDB module issued with EDBCM 109/2023. It covers abstraction, algorithm and automation, usually with block tools.

Should a nine year old learn Python or Scratch?

Python, if they have used blocks before and type reasonably. Otherwise a term of Scratch first. Our Python and AI for Kids course starts at nine.

Can my nine year old enter a coding competition?

Yes, through school. HKPSOI is open to P4 to P6 pupils at primary schools that apply. The 2026/27 heat runs from 7 to 18 December 2026 and the final is on 20 February 2027. It uses Blockly.

Does my child need a powerful computer?

No. Any laptop or desktop with a keyboard, a camera and a microphone. Python is free and light, and Scratch runs in a browser.

Can a nine year old use ChatGPT?

No. OpenAI does not offer ChatGPT in Hong Kong, and its minimum age is 13, with a parent's permission under 18; Claude is not offered here either and its minimum is 18. We teach nine year olds to write and test their own code.

Are classes one to one?

Yes. Every Hong Kong class is one child with one mentor, live on video.

What language is the class taught in?

English. Our mentors are based in India and speak clearly at the child's pace. We do not teach in Cantonese or Mandarin.

What times are available?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. A 4:30 pm class in Hong Kong is 2 pm in India.

How are fees paid?

Monthly, in Hong Kong dollars, one month at a time, with no lump sum. Any payment-gateway charge appears before you pay. The first class is free.

Related

More for Hong Kong families

Where parents of nine year olds go next.

Coding classes in Hong Kong

All our courses, by age.

Python course in Hong Kong

The language most nine year olds type first.

Coding for 9 year olds, worldwide

The same age, beyond Hong Kong.

AI course for kids

How machines learn, at this age.

Coding for 10 year olds

A year ahead.

Coding class fees

What sets the price.

More pages for Hong Kong

Part of the guide: Every Hong Kong page

More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · AI, vibe coding and AI agents: AI agents course · Coding subjects and courses: App development · HKDSE ICT and maths: DSE ICT elective guide · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Olympiads and competitions: AMC 10 preparation · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay

Start here

Book a free first class for your nine year old

Your child types a short program, draws a shape, and tries to make it go wrong. You can watch. Afterwards the mentor explains whether Python now or one more term of blocks is the better start.

Read first? The Python and AI for Kids page has the full outline, week by week.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Live online in English, with one mentor for one child; mentors are based in India. WhatsApp is the fastest route to us.

No card is needed for the free first class.

Want a class sooner? Book a priority demo

A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.

Book a priority demo

Keep exploring Modern Age Coders

By class and age

Learn more

Free resources

From the blog

Start here

Free classPriority demoCall us