Hong Kong · Secondary school · S1 to S6 and Years 7 to 13

Coding for secondary students in Hong Kong

Some secondary students want coding for an exam, some for a contest, some to understand AI, and some simply to build an app their friends will use. Those are different routes with different first languages. We teach Hong Kong secondary students one to one, live and in English, and we start by working out which route is yours.

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

In a few lines

Coding for secondary students in Hong Kong usually follows one of four routes: an exam (HKDSE ICT, IGCSE, IB or A level), a contest (HKOI), AI and data, or building real apps and sites. Each wants a different first language and pace. Modern Age Coders runs live online lessons for secondary students, always one to one and always in English, with mentors in India and lesson times set around the student's Hong Kong week. Most start with Python; contest students add C++. The first class is free and doubles as a placement check.

Courses first

Which coding course should a secondary student start with?

Three starting points that between them cover almost every secondary student we meet in Hong Kong.

Where secondary students study

Does the type of secondary school change how a student should learn coding?

Yes, mostly through the exam at the end. Hong Kong has public sector schools, Direct Subsidy Scheme schools and international schools, and each points towards different qualifications.

Hong Kong secondary schooling by type, and the coding exam each usually leads to
School typeOfficial figureUsual exam route for coding
All secondary day schools347,820 students, mid-September 2025 (EDB)Depends on school
DSS schools78 schools (LegCo reply, February 2026); must offer "principally a curriculum targeted at local students"Mostly HKDSE ICT; some also offer non-local exams
International schools53 schools; 44,745 students in 2025/26, 33.8% of them local (EDB)IGCSE, IB Diploma or A level computer science
Public sector schoolsThe majority of schools (EDB)HKDSE ICT as an elective in S4 to S6

Sources: EDB, Student Enrolment Statistics 2025/26; Government reply to a LegCo question on international schools, February 2026; EDB international schools statistics page (2025/26 figures, excluding the special school); EDB, Direct Subsidy Scheme information. All read 23 November 2026. The right-hand column is our summary.

At local and DSS schools

Junior forms meet programming in computer lessons and a short AI module; seniors may choose ICT. The exam is in Python or C++, set by the HKEAA.

Students at these schools often want a mentor who explains in English what the textbook says in Chinese, or who simply has time to look at their code.

At international schools

Computing is usually a GCSE-style subject at 14 to 16 and then IB or A level. Cambridge says its next IGCSE Computer Science syllabus, first examined in 2029, is moving to "Python 3 as the only language for teaching, assessment and programming questions".

Our IGCSE CS tutor and IB CS tutor pages cover those exams in Hong Kong.

Four routes

What can a secondary student do with coding in Hong Kong?

Four things, broadly, and a student can switch between them. The numbers show how many Hong Kong students were on the exam and contest routes in the most recent year.

Four coding routes for Hong Kong secondary students, with the latest official numbers
RouteLatest figureSourceWhere we start
Exam: HKDSE ICT6,251 candidates sat ICT in 2026HKEAA, 2026 resultsPython or C++, as the school teaches
Exam: maths alongside7,979 sat M2 and 3,655 sat M1 in 2026HKEAA, 2026 resultsMaths that supports algorithms
Contest: HKOI450 senior and 415 junior contestants at the 2025/26 heatHKOI statistics, 2026C++ and problem solving
International exams44,745 international school students, 2025/26EDB statisticsIGCSE, IB or A level CS
AI and dataAI module of 10 to 14 hours in junior formsEDBCM No. 109/2023Python, data and simple models
BuildingNo official countNoneWeb, apps or games, as a portfolio

Figures from the HKEAA 2026 HKDSE results press release, HKOI 2025/26 statistics, EDB international schools statistics and EDB Circular Memorandum No. 109/2023, read 23 November 2026. The routes overlap, so the figures should not be added together.

Exam route

Marks and syllabus first; we follow the school's order and language, and never write coursework.

Contest route

Speed and correctness under a judge; C++ early, plenty of original practice problems.

Build route

A real project with users, tests and version control, shown on a portfolio.

Contest students should read competitive programming for teens in Hong Kong; AI-minded students, our AI course for teens in Hong Kong.

A secondary lesson, in full

What does a first secondary coding lesson look like? Breaking a secret message

This lesson works on every route: exam students practise strings and loops, contest students see brute force, AI students see a scoring function, and builders get something to show friends. It takes one lesson for most S1 to S3 students and half a lesson for seniors.

  1. Shift the alphabet. A Caesar cipher moves every letter the same number of places along, wrapping z back to a. The student encodes a short message by hand with a key of 3.
  2. Write the shift. The program does the same for any key, using % 26 to wrap around. Spaces stay as they are.
  3. Hide a message. The program encrypts "meet at the ferry pier after school" with key 11. Only the ciphertext is shown to the student's partner, or parent.
  4. Try every key. There are only 26. The program decrypts with each one and gives every attempt a score: the share of letters that are among the commonest in English.
  5. Rank and read. The top-scoring attempt is printed first. The student checks whether it is real English, and asks what would make this method fail.
Caesar cipher: encrypt, try all 26 keys, rank by common lettersPython
# Caesar cipher: encrypt, then crack by trying every key. Our own lesson.
ALPHA = "abcdefghijklmnopqrstuvwxyz"

def shift(text, key):
    out = ""
    for ch in text:
        if ch in ALPHA:
            out += ALPHA[(ALPHA.index(ch) + key) % 26]
        else:
            out += ch
    return out

COMMON = set("etaoinshr")

def score(text):
    letters = [ch for ch in text if ch in ALPHA]
    return sum(ch in COMMON for ch in letters) / len(letters)

secret = shift("meet at the ferry pier after school", 11)
print("ciphertext:", secret)
ranked = sorted(range(26), key=lambda k: score(shift(secret, -k)), reverse=True)
for k in ranked[:3]:
    print(f"key {k:2}  score {score(shift(secret, -k)):.2f}  {shift(secret, -k)}")
print("keys tried:", 26)

The message and the key are our own choice. The program uses only built-in Python 3; running it prints exactly the five lines below.

OutputOutput
ciphertext: xppe le esp qpccj atpc lqepc dnszzw
key 11  score 0.76  meet at the ferry pier after school
key 22  score 0.52  btti pi iwt utggn extg puitg hrwdda
key 23  score 0.52  assh oh hvs tsffm dwsf othsf gqvccz
keys tried: 26

Key 11 scores 0.76, far ahead of the next best at 0.52, and its text is the original message. The runners-up are nonsense with a lucky share of common letters. Twenty-six tries are all it takes, which is why nobody uses this cipher for anything real.

Ideas in this one lesson

Modular arithmetic for wrapping, loops over strings, a function reused for both directions, and a sort with a custom key. Each appears again in DSE ICT, IGCSE and contest problems.

Then the big idea: the cipher is weak because its key space is tiny. Modern encryption is safe because trying every key would take longer than the age of the universe, not because the method is secret.

Where students take it

Exam students write a trace table for one letter. Contest students crack a cipher where each letter moves by a different amount. AI-route students improve the scoring with full letter frequencies and see it fail on very short messages.

Students who enjoy this often like our cybersecurity course for teens, which teaches defence and ethics, never attacks on real systems.

  1. Shorter secret. Encrypt "hi" and try to crack it. Why does the score stop working?
  2. Capital letters. Extend the program so "Meet" keeps its capital M.
  3. Two keys. Shift odd letters by one key and even letters by another. How many keys must now be tried?
  4. Explain to a friend, in three sentences, why 26 keys is not enough.

First language

Should a secondary student learn Python or C++ first?

Usually Python, then C++ for students on the contest route or in a school that examines ICT in C++. The deciding facts come from the exam boards and contest organisers.

Arguments for Python first

The EDB's 2021 ICT guide lists Python and C++ for today's DSE cohorts, Cambridge is moving IGCSE Computer Science to Python 3 alone from 2029, and almost every AI library is written for Python. It is also gentler for a first year.

The Hong Kong Python course guide traces the full route from first lines to exam and AI work.

When C++ comes early

HKOI's rules make C++ the main language and warn that "Not all tasks and subtasks are solvable using Python." In the 2025/26 heat, C++ takers produced far more finalists than Python takers in both groups (HKOI statistics).

So a student serious about HKOI usually moves to C++ by S2 or S3. See our HKOI training page for how we prepare, without promising selection.

Junior and senior

How does coding change between junior and senior secondary?

Junior years are for breadth and habit; senior years are for depth and a goal. We keep separate pages for each half of secondary school, with the school details for each.

Junior and senior secondary coding in Hong Kong: our emphasis
StageAt schoolWith us, one to one
S1 to S3 (Years 7 to 9)Computer lessons with at least 30% of ICT time on programming (EDB guidance), plus the AI modulePython fluency, data, a first AI project, a decision about routes
S4 to S6 (Years 10 to 13)HKDSE ICT or IGCSE, IB, A level; contests for someThe exam language and topics, algorithms, contest or portfolio work

School column from the EDB Technology Education guide (2017), EDBCM No. 109/2023 and the ICT curriculum guide (2021). Detail by form: coding for S1 to S3 and coding for S4 to S6.

A word on AI tools

AI tools have age terms set by the companies that make them, and not every tool is offered in Hong Kong: OpenAI does not offer ChatGPT here, and Anthropic does not offer Claude, which is adults only anyway. We teach with tools offered in Hong Kong or provided by the student's school, within their age terms, and teach the thinking that carries over to any tool.

We also teach students to write code themselves before asking a tool; our page on thinking with AI, not copying explains why.

English and one to one

Lessons are in English from mentors in India; students at Chinese-medium schools note their school's terms beside ours. In Hong Kong every lesson is private, one student to one mentor.

More on the language question: coding classes taught in English in Hong Kong.

Progress

How does a secondary student move up?

Our own levels for secondary coders on any route. Not school grades, not exam levels.

Secondary coding: our levels
LevelThe student canShown by
StarterWrite short programs with loops and conditionsSmall tools and games
BuilderUse functions, lists and files in a projectA program of 100+ lines
AnalystMeasure and compare two solutionsA written comparison
SpecialistWork deeply on one route: exam, contest, AI or webPast-paper style answers, judged solutions or a model
IndependentPlan and finish a project aloneA portfolio piece
Mentor-readyExplain code clearly to someone youngerA walkthrough recorded or written

For students

If the key space is small, try every key.

Pick a route, but keep Python as home base.

For parents

Ask which route your teenager has chosen this term, and why.

The monthly note says which level comes next.

More courses

Nine more courses for secondary students

Live, in English, one to one for Hong Kong students.

I

Exam

S3 to S6

CSE / EXAM / 01

HKDSE ICT: Programming and Exam Prep

Python or C++ for the DSE.

Open the syllabus

CSE / EXAM / 03

IB DP Computer Science

The 2027 guide and its IA.

Open the syllabus
II

AI and data

S1 and up

CSE / AI / 01

AI and Machine Learning for Teens

Models built and tested in Python.

Open the syllabus

CSE / AI / 02

Data Science for Teens

Questions answered from real data.

Open the syllabus

CSE / AI / 03

AI Tools Course for Teens

Prompting and checking, under each tool's rules.

Open the syllabus
III

Build

S1 and up

CSE / BUILD / 01

App Development for Teens

An app on your own phone, built in React Native.

Open the syllabus

CSE / BUILD / 02

Game Development for Teens

Unity games, finished and shared.

Open the syllabus

Timing and setup

When can a secondary student fit in lessons?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India sits two and a half hours behind Hong Kong in every month of the year, so mentors are available well into a Hong Kong evening.

After school activities

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

Evening

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

Saturday early

9 am in Hong Kong is 6:30 am in India.

A laptop

Camera, microphone and a keyboard.

Free software

Python, C++ compilers and editors, installed together.

One mentor

Continuity from junior to senior forms.

Around exams

Lessons moved or paused in test weeks.

Code saved

Every project kept and extended.

Monthly note

Route, level and next steps.

Student work

Projects by our students

Work from our teen courses; more on the student labs page.

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 secondary coding lessons

There is one fee per month, displayed in Hong Kong dollars on the card below. Families pay as each month begins and never prepay several months. The checkout page lists any payment-gateway charge before you confirm.

Free first class

Free

no card required

  • Free first class, one to one
  • Route and level worked out together
  • No card asked for
Book it

One to one

$1,200 HKD

a month, eight live classes

  • A personal mentor
  • A plan for your route: exam, contest, AI or build
  • Times you choose
Start here

What families say

Rated 4.9 across 547 Google reviews

What families wrote on Google, exactly.

★★★★★

"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

Secondary students ask

Coding for secondary students: questions and answers

Is it too late to start coding in secondary school?

No. Many strong programmers start in S1 or later. Secondary students learn the basics faster than younger children because they read and reason more easily.

Python or C++?

Python first for most students. Add C++ early for HKOI, or if your school examines DSE ICT in C++.

Do you prepare students for HKDSE ICT?

Yes, with our HKDSE ICT course, in the language your school uses. We give SBA guidance only and never write SBA work.

Can you help international school students?

Yes: IGCSE, IB and A level computer science, in the same one-to-one format.

Can you prepare me for HKOI?

We train the skills the heat and final test, mostly in C++. Entry is through schools, and we do not promise any medal or team place.

Are the lessons live and one to one?

Yes. Every lesson is live video with one mentor and one student.

What language are lessons taught in?

English, by mentors based in India. We do not teach in Cantonese or Mandarin.

When are lessons?

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

Do you use AI tools with under-18s?

Only tools offered in Hong Kong or provided by the school, within each tool's age terms and with a parent's permission where required. ChatGPT and Claude are not offered in Hong Kong by their makers, so they are not part of our lessons.

How do fees work?

Monthly, shown in Hong Kong dollars, with any gateway charge shown before payment. The first class is free.

Related

More for Hong Kong secondary students

Where to go next.

Coding for S1 to S3

The junior years in detail.

Coding for S4 to S6

The DSE years in detail.

HKDSE ICT tutor

The exam route.

HKOI training

The contest route.

AI for teens in Hong Kong

The AI route.

Vibe coding for teens

Building with AI help.

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 class for a secondary student

Tell us your form or year, your school type and what you want from coding. In the free class you write a real program with the mentor and agree a route and a first course.

See the full course list or how we teach first.

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

Live, online, one to one, in English. Mentors are in India. WhatsApp is quickest.

The first class is free; no card needed.

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

Related courses and guides

Learn more

Free resources

From the blog

Start here

Free classPriority demoCall us