Hong Kong · Age 12 · P6 or S1

Coding for 12 year olds in Hong Kong: from P6 into secondary school

Twelve is a crossing year. A Hong Kong child spends part of it finishing primary school and waiting for a secondary place, and part of it in S1 with new subjects, a new timetable and, at most schools, AI lessons. It is also the last year before teen courses and many tools open at 13. We teach twelve year olds one to one, live online, in English, with Python, algorithms and, for the contest-minded, a first look at C++.

Teaching live since 2020 · 10,000+ students worldwide · one to one for Hong Kong learners, in English

In one paragraph

Coding for 12 year olds is ready for real algorithms: sorting, searching, functions and lists in Python, and for some, C++ for contests. In Hong Kong a twelve year old is in P6, finishing the EDB coding modules and waiting for an S1 place, or in S1, where schools teach 10 to 14 hours of AI. Modern Age Coders teaches twelve year olds live, online, in English and one to one, at Hong Kong times your family picks, with courses built for under-13s.

Courses first

Which coding course fits a twelve year old?

At twelve, our teen courses are a year away: they start at 13. These three take twelve year olds now and lead straight into them.

The crossing year

What happens to a 12 year old between P6 and S1 in Hong Kong?

Secondary School Places Allocation (SSPA). P6 pupils apply and are allocated S1 places during the school year, and the results come out in July. Coding plays no part in it, which is worth saying because some families worry it might.

The P6 to S1 crossing in 2027: EDB dates and rules
StepWhat the EDB publishes
Discretionary Places applications"Application period from 4 January to 18 January 2027"
How many schools at that stageNot more than two secondary schools, in any district
Results"Release of DP and CA results on 6 July 2027"
S1 beginsSeptember 2027, at the allocated school

Sources: EDB, Secondary School Places Allocation general information page and SSPA FAQ (September 2026 edition), read 23 November 2026. DSS and private schools set their own admission criteria. We give no advice on school choice or banding.

Where coding fits in P6

P6 has the third EDB coding module, issued with EDBCM 152/2024. It "builds on the computational thinking concepts and skills students learnt in Primary 4 and Primary 5" and asks pupils to write programs "through project activities to solve real-life problems". The pilot AI strand adds, for P6, ideas such as AI hallucination, keeping academic honesty, and designing a smart school or smart home (our English).

So a P6 child has three years of school coding behind them. With us, that usually means skipping the basics and moving to typed algorithms.

Keeping it light in a heavy year

P6 is busy with internal assessments and applications. A one to one lesson bends around that: shorter in January, project-based in the summer before S1, paused for a week when needed.

Many families use the summer between P6 and S1 for a concentrated burst, since there is no school coursework yet and the child is curious about secondary school.

AI at junior secondary

Do S1 students in Hong Kong learn AI?

Yes, at most schools. The EDB's Module on Artificial Intelligence for Junior Secondary Level has been available since the 2023/24 school year, and schools are advised to give it 10 to 14 hours across junior secondary.

What the module covers

In EDBCM 109/2023 the EDB lists "AI basics, AI ethics, computer vision, computer speech and language, virtual reality, robotics, societal impact and future of work, etc." That is a survey course: what AI is, what it can see and hear, and what it means for people.

Ten to fourteen hours spread over S1 to S3 is a taste, not a training. A twelve year old who wants to build something with AI will need more time than the module allows.

What we add, and what has to wait

With us, a twelve year old builds the pieces the module describes: a program that sorts and searches data, a tiny classifier trained on their own examples, tested until it fails. Typed code makes the module's ideas concrete.

Chatbots wait. Neither ChatGPT nor Claude is offered in Hong Kong by its maker, and their terms set 13 (with a parent's consent until 18) and 18 as minimum ages anyway. We teach with tools offered in Hong Kong or provided by a school, and the thinking carries over to any of them. Our AI course for Hong Kong secondary students takes over at 13.

For thinking with AI rather than copying from it, see learn to think, not copy; for the same age worldwide, coding for 12 year olds.

The informatics olympiad

Can a 12 year old enter HKOI, and in which language?

An S1 student can, if their school nominates them. HKOI's Junior Group is for younger secondary students, and its own figures show a large gap between C++ and Python at the 2025/26 heat.

HKOI Junior Group for a twelve year old: rules and recent results
ItemWhat HKOI publishes
Who is eligible, 2026/27Born on or after 1 July 2010, with more than 2 years left in normal secondary study
How to enterEach day secondary school may nominate up to 8 Junior Group students
PlacesA quota of 600 students each for the Senior and Junior Groups
LanguagesC++ (C++20) first; Python 3.10 or above as a "2nd-class" language
2025/26 Junior heat, Python216 took it; 25 reached the final
2025/26 Junior heat, C++199 took it; 73 reached the final

Sources: HKOI 2026/27 application page, HKOI rules, and HKOI 2026 statistics (assets.hkoi.org), read 23 November 2026. Our arithmetic: about 11.6% of Junior Python takers and 36.7% of C++ takers reached the final. The 2026/27 heat was held on 7 November 2026, so a twelve year old now is aiming at 2027/28. We are not connected with HKOI and promise no result.

Python first, or C++?

For most twelve year olds, Python first: it is the faster way to learn algorithms. For a child set on HKOI, C++ within the year, because the rules treat Python as second class and some tasks cannot be solved in it.

A one to one mentor can teach the same algorithm in both, which is the quickest way to see what C++ adds.

How we prepare

With our own problems, never past HKOI papers reproduced: sorting, searching, counting, and careful reading of a task. Next year, at 13, our competitive programming for teens course takes over.

For the wider picture of the olympiad ladder, see olympiad in informatics training.

A sorting lesson, in full

What does a coding lesson for a 12 year old look like?

Sorting is the first algorithm worth measuring. In this lesson the child sorts six race times by hand, writes bubble sort, then counts the work it does on three kinds of input and adds one line that makes it much faster on nearly sorted data.

  1. Sort by hand. Six 50-metre times on cards. The only move allowed: compare two neighbours and swap if they are out of order. The child notices the slowest time drifts to the end after one pass.
  2. Write it down. One pass is a loop over neighbours; repeat passes until done. That is bubble sort, written in Python as two nested loops.
  3. Count the work. Add counters for passes, swaps and comparisons, and try a mixed-up list, a nearly sorted one, and a backwards one.
  4. Spot the waste. On the nearly sorted list, the later passes change nothing. The child adds a flag: if a pass makes no swaps, stop.
  5. Compare. Run the nearly sorted list with and without the early stop and see the comparisons fall.
Bubble sort on race times: counting passes, swaps and comparisonsPython
# Sorting race times by hand, then in code: our own bubble sort lesson for a 12 year old.
def bubble(times, stop_early=True):
    times = list(times)
    passes = swaps = looks = 0
    for end in range(len(times) - 1, 0, -1):
        passes += 1
        swapped = False
        for i in range(end):
            looks += 1
            if times[i] > times[i + 1]:
                times[i], times[i + 1] = times[i + 1], times[i]
                swaps += 1
                swapped = True
        if stop_early and not swapped:
            break
    return times, passes, swaps, looks

heats = {
    "mixed up":      [14.2, 12.8, 15.1, 13.0, 12.5, 13.9],
    "nearly sorted": [12.5, 12.8, 13.0, 13.9, 15.1, 14.2],
    "backwards":     [15.1, 14.2, 13.9, 13.0, 12.8, 12.5],
}
for name, times in heats.items():
    result, passes, swaps, looks = bubble(times)
    print(f"{name}: {passes} passes, {swaps} swaps, {looks} comparisons -> {result}")
_, p, s, l = bubble(heats["nearly sorted"], stop_early=False)
print(f"nearly sorted, no early stop: {p} passes, {l} comparisons")

The times and the program are ours. It runs in any Python 3 editor and prints exactly the output below.

OutputOutput
mixed up: 5 passes, 9 swaps, 15 comparisons -> [12.5, 12.8, 13.0, 13.9, 14.2, 15.1]
nearly sorted: 2 passes, 1 swaps, 9 comparisons -> [12.5, 12.8, 13.0, 13.9, 14.2, 15.1]
backwards: 5 passes, 15 swaps, 15 comparisons -> [12.5, 12.8, 13.0, 13.9, 14.2, 15.1]
nearly sorted, no early stop: 5 passes, 15 comparisons

Six times always need at most 15 comparisons in five passes. Backwards input is the worst case, with all 15 comparisons causing a swap. The nearly sorted list needs one swap, and with the early stop it finishes after 2 passes and 9 comparisons instead of 5 passes and 15.

What the child is really learning

That an algorithm can be correct and still wasteful, and that measuring beats guessing. That inputs matter: best, worst and typical cases behave differently. That one boolean flag can change the work a program does.

These are the questions secondary computing and contests ask for the rest of school. A twelve year old who has counted comparisons once never sees a loop the same way again.

Practice for next time (ours)

1. How many comparisons for 10 times in the worst case? 2. Make a six-time list that needs exactly 3 swaps. 3. Sort from fastest to slowest by changing one character. 4. Write selection sort and compare its swaps on the backwards list.

Answers: 1 is 45 (9 + 8 + ... + 1). For 3, change the greater-than sign to less-than. For 4, selection sort needs only 3 swaps on the backwards list, but still 15 comparisons.

Choosing

Which path suits a twelve year old: Python, maths or C++?

The free first class includes a short typed task and a puzzle, so the mentor can see how your child reads code and reasons, then recommend a path and say when to move on to the teen courses at 13.

At twelve: our guide to a first course and what follows at 13
Your childNowAt 13
New to typed codePython and AI for KidsPython for Teens
Strong at maths, likes puzzlesMaths Through CodingContest maths or competitive programming
Wants HKOIC++ for KidsCompetitive Programming for Teens
Loves making gamesGodot Game DevelopmentGame Development for Teens
Curious about AIAI Literacy for KidsAI and Machine Learning for Teens

Our placement guide. Course ranges from each course page: Python and AI for Kids 9 to 12, Maths Through Coding 10 to 15, C++ for Kids 9 to 12, Godot 10 to 17, AI Literacy 8 to 14; our teen courses start at 13.

One to one at twelve

Lessons are private for every Hong Kong learner. At twelve, that lets the mentor push a strong student hard and slow down for a tired one in the same week, and fit around SSPA and S1 tests.

It also makes the step to 13 smooth: the same mentor can carry on into a teen course.

English at twelve

Code is written in English words, and English-medium secondary schools teach computing in English too. Our India-based mentors speak clearly and at the student's pace; Cantonese and Mandarin lessons are not offered.

See coding taught in English in Hong Kong and our Python course for Hong Kong for the longer road.

Progress

What should a twelve year old reach in a year?

Our own milestones for twelve year olds, used to plan lessons and to decide when to move to a teen course. Not a school or HKOI level.

Twelve year olds: our algorithm milestones
MilestoneThe student canShown by
1. FunctionsSplit a program into named functionsA sort written as one reusable function
2. ListsRead, change and swap list itemsNeighbours swapped correctly
3. CountMeasure the work a program doesComparisons counted on three inputs
4. ImproveChange an algorithm to waste lessThe early stop added and measured
5. Second languageWrite the same idea in C++Bubble sort on an array in C++
6. Contest taskRead a problem and solve it aloneAn original task solved and tested

For students

Count before you claim it is fast.

Try the worst input on purpose.

For parents

Milestone 3 marks a shift from writing code to reasoning about it.

Ask which input made the sort work hardest, and why.

More courses

Nine more courses for twelve and the year after

All live, in English, private for Hong Kong learners. The first two bands take twelve year olds now; the third opens at 13.

I

Open now

Code and projects

COY / NOW / 02

AI Literacy for Kids

Train a model, then find its limits.

Open the syllabus

COY / NOW / 03

HTML and CSS for Beginners

Responsive sites, built properly.

Open the syllabus
II

Open now

Contest maths

COY / MATHS / 01

AMC 8 Preparation

Contest problems for ages 10 to 14.

Open the syllabus

COY / MATHS / 02

Middle School Maths Competitions

A broad contest grounding.

Open the syllabus
III

From 13

Teen courses

COY / TEEN / 02

Competitive Programming for Teens

Algorithms for contests.

Open the syllabus

COY / TEEN / 03

AI and Machine Learning for Teens

Python to real models.

Open the syllabus

Timing and setup

When can a twelve year old fit coding around P6 or S1?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India is 2 hours 30 minutes behind Hong Kong all year, so even a late S1 evening falls inside the mentor's day.

After school

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

Late evening

An 8:30 pm lesson is 6 pm for the mentor.

Sunday afternoon

4 pm Hong Kong time is 1:30 pm India time.

A laptop

Python and, later, a C++ compiler; both free.

Paper for tracing

Algorithms are worked by hand first.

A quiet hour

Harder material needs real focus.

The same mentor

Including into the teen courses at 13.

Monthly notes

Progress and the next milestone.

SSPA and S1 tests

Move or shorten lessons in busy weeks.

Student work

Work by our older students

Projects from learners in our longer courses, a year or two further on; see the student labs for 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 at twelve

The fee is monthly, quoted in Hong Kong dollars, and paid only for the month about to start; we sell no terms, packages or prepaid blocks. When a payment gateway adds a charge, the checkout shows the amount before you agree.

Free first class

Free

no card required

  • A free first class, one to one
  • A typed task and a puzzle
  • No card needed
Book it

One to one

$1,200 HKD

a month, eight live classes

  • A private mentor
  • Pace that fits P6 or S1
  • Times set by your family
Start here

What families say

Rated 4.9 across 547 Google reviews

What families wrote about us on Google, verbatim.

★★★★★

"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 twelve year olds ask

Coding at twelve: questions and answers

What coding should a 12 year old learn?

Typed Python with real algorithms: functions, lists, sorting and searching. Children aiming at HKOI should add C++ within the year, since HKOI treats Python as a second-class language.

Does coding help with secondary school allocation?

No. SSPA does not consider coding, and we give no advice on banding or school choice. In 2027 Discretionary Places applications run from 4 to 18 January and results come out on 6 July.

Do S1 students learn AI in Hong Kong?

Most do. The EDB's junior secondary AI module has been available since 2023/24, with 10 to 14 hours advised across junior secondary, covering AI basics, ethics, computer vision, speech and language, and social impact.

Can a twelve year old enter HKOI?

Yes, through their secondary school, in the Junior Group if eligible. For 2026/27 that means born on or after 1 July 2010 with more than two years of secondary study left; each school may nominate up to 8 Junior students.

Can my twelve year old take your teen courses?

Not yet: they start at 13. We use courses built for this age, which lead into the teen courses, often with the same mentor.

Can a twelve year old use ChatGPT?

OpenAI does not offer ChatGPT in Hong Kong, and its terms set 13 as the minimum in any case, with a parent's consent until 18. Claude is not offered here either and is for users of 18 and over. We teach twelve year olds to build and test their own code.

Are the classes private?

Yes. Every Hong Kong learner has one mentor to themselves, on a live video call.

What language are lessons in?

English. Mentors work from India and match the student's pace; there is no teaching in Cantonese or Mandarin.

When can lessons be held?

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

How is payment handled?

Month by month, in Hong Kong dollars, with no lump sum. Gateway charges, if any, show before you pay, and the first class is free.

Related

Next steps for Hong Kong families

For twelve and for the teen years just ahead.

Coding classes in Hong Kong

Every course, by age.

Competitive programming for teens

The contest path from 13.

AI for secondary students

Beyond the S1 module.

Coding for 12 year olds, worldwide

The same age elsewhere.

Python in Hong Kong

From first lines to DSE ICT.

Coding class fees

How pricing works here.

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 twelve year old

Your child sorts a short list by hand, writes the loop that does it, and counts the comparisons. You can watch or step out. Afterwards the mentor suggests a path and when to move to a teen course.

Syllabus first? See Python and AI for Kids or C++ for Kids.

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

Live video lessons in English with a single mentor based in India. WhatsApp brings the quickest answer.

Free first class; no card details asked for.

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