Hong Kong · Age 10 · Usually P5

Coding for 10 year olds in Hong Kong: the year Python takes over

Ten year olds want to know how things really work, and they can handle the answer. In Hong Kong most are in P5, the middle of three school coding years, and many are ready to leave blocks behind for typed Python. Our classes for this age are live, online and in English, always with one mentor for one child, built around projects they would actually show a friend: games, secret codes, maths experiments and small AI.

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

In one paragraph

Coding for 10 year olds is the Python year for most children: typing is quick, maths is strong enough for loops and remainders, and projects can be genuinely clever. In Hong Kong a ten year old is usually in P5, the second year of the EDB school coding modules, and meets AI training topics in the pilot strand. Modern Age Coders runs live online classes in English for ten year olds, one to one, scheduled at whatever Hong Kong hour your family prefers, and takes them from first Python lines to small AI projects.

Courses first

Which coding course should a ten year old take?

Ten opens several typed-code courses. These three suit most Hong Kong ten year olds, depending on whether they lean towards projects, maths or games.

School coding, P4 to P6

What does a P5 pupil learn in coding at a Hong Kong school?

P5 is the middle of three. The EDB issued a coding module for each upper primary level in turn, all adapted from CoolThink@JC, and asks schools for 10 to 14 hours a year at each level. Here is how the three fit together, from the circulars themselves.

Hong Kong's upper primary coding modules, level by level
LevelCircularWhat the EDB says about it
P4EDBCM 109/2023, 19 June 2023Basic computational thinking: abstraction, algorithm and automation; P5 and P6 modules to follow "in phases in the 2023/24 school year"
P5EDBCM 32/2024, issued in the 2023/24 school yearThe second module, named in EDBCM 152/2024 as the P5 step
P6EDBCM 152/2024, 11 July 2024Builds on P4 and P5, applying programming constructs "through project activities to solve real-life problems"
All threeEach circular10 to 14 hours of enriched coding a year for every upper primary pupil

Sources: EDB Circular Memoranda No. 109/2023 and No. 152/2024 (the latter describes 32/2024 as the P5 module); read 23 November 2026. The P5 circular itself was not among the copies we fetched, so we describe it only through 152/2024.

What P5 materials look like

CoolThink@JC, the programme behind much of the school material, told schools in 2023 that it "offers Level 2 (for P5) and Level 3 (for P6) learning materials and teacher training course to all primary schools". Its showcase lists "9 award-winning Scratch and App Inventor projects" built by teachers.

So a P5 child may be building small apps from blocks in App Inventor this year. Our App Inventor for kids page explains the tool if it comes home as homework.

Where a one to one class fits

Block apps teach the ideas well. What they rarely reach is typed code and longer independent projects. At ten, those are the natural next steps, and a private lesson can take them at the child's own speed.

If the school module is moving slowly for your child, the mentor can go further on the same idea; if it is moving fast, the mentor can consolidate it.

AI in P5

What do P5 pupils in Hong Kong learn about AI?

P5 is where the pilot primary AI strand gets hands-on. Pupils are asked to train an AI with pictures they collect, then to feed it skewed examples on purpose and compare the results. Here is the P5 list in our own English.

P5 in the pilot primary AI strand: what pupils try, in our words
Suggested activityWhat it shows a ten year old
Collect pictures of animals or objects and use them to "train" an AI on an image machine-learning platform, then record resultsA model learns only from the examples it is given
Collect a deliberately skewed set (for a cat detector, unusual cat breeds), retrain, and compareBiased data gives biased answers
Try a speech recognition tool, for example typing by voice, and judge its accuracyAI makes mistakes, and some situations cause more
List automation examples such as automatic doors and navigationPrograms and AI run quietly all around us
Discuss how human learning differs from machine learningPeople learn from curiosity and a wish to know; machines learn what they are fed

Source: EDB, Information and Innovation Technology Curriculum Framework for Primary Schools, "Preliminary Study of Artificial Intelligence" Strand (Pilot Version), Chinese edition, P5 suggestions; released with EDBCM No. 113/2026 (21 July 2026). Read 23 November 2026. The English is our summary; it is a pilot, so schools try it at different speeds.

How coding makes this click

A ten year old who has written a rule-based program, such as the cipher below, sees the contrast immediately: the cipher does exactly what it was told, every time, while a trained model guesses from examples and can be fooled by bad ones.

That contrast is the heart of AI literacy, and it is far easier to grasp from the coder's seat than from the user's.

Tools and age rules

Under OpenAI's terms a ChatGPT user is 13 or older, and a teenager also needs a parent's consent; Anthropic sets 18 for Claude. A ten year old meets neither rule, and neither maker lists Hong Kong among the places it offers its chatbot, so neither appears in our lessons. Child-safe training tools used in class with a mentor are a different matter.

For a deeper course, see AI for Hong Kong children; to check a particular app, our age guide to AI tools covers over a hundred.

Why ten suits Python

Is 10 a good age to learn Python?

For most children, yes. Typing has caught up with thinking, and P5 maths, with remainders, angles and simple fractions, gives Python something to chew on. Blocks remain useful, but they start to feel slow.

Signs a ten year old is ready

They can type a sentence without hunting for every key. They have used blocks, at school or with us, and understand loops and conditions. They get frustrated when Scratch cannot do what they imagine.

They also cope with the small irritations of typed code: a missing bracket, a capital letter in the wrong place. A one to one mentor turns each into a two-minute lesson rather than a meltdown.

What changes when they type

Text becomes something to work with: a name, a message, a code. Functions arrive: a block of steps with a name, used again and again. Errors arrive too, with line numbers, which teach precise reading.

Our Python for 10 year olds guide covers first projects in detail, and our Hong Kong Python course overview follows the language onwards, from school exams to contests.

Strings

Messages, names and codes as data a program can change.

Functions

Named steps, written once and reused.

Remainders

Wrap-around arithmetic, from clocks to ciphers.

A cipher lesson, in full

What does a Python lesson for a 10 year old look like?

Secret messages work on every ten year old. In this lesson the child writes a Caesar cipher, which shifts each letter a fixed number of places, then hits the problem at the end of the alphabet, then cracks a friend's message without knowing the key.

  1. Do it by hand. Shift "cat" by 3: c to f, a to d, t to w. "fdw". The child encodes their own name on paper.
  2. Hit the edge. Shift "zebra" by 3. What comes after z? The child decides it should wrap round to a, b, c. That idea is the remainder: position plus 3, then the remainder after dividing by 26.
  3. Write the function. A function called shift takes a message and a key and builds the coded message letter by letter, leaving spaces alone.
  4. Decode with the same function. Shifting by minus 3 undoes a shift of 3. One function, two jobs.
  5. Crack a message. The mentor sends "mlvp dlwp zy qctolj" with no key. The child tries all 26 keys in a loop and keeps the guess made of real words.
Secret messages: a Caesar cipher and a key found by trying all 26Python
# Secret messages by shifting letters: our own Caesar cipher lesson for a 10 year old.
ABC = "abcdefghijklmnopqrstuvwxyz"

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

secret = shift("meet me at the library at four", 3)
print("coded:", secret)
print("decoded:", shift(secret, -3))
print("zebra +3:", shift("zebra", 3))

# A friend forgot the key: try all 26 keys, keep the one made of real words.
WORDS = {"on", "the", "bake", "sale", "friday", "at", "me"}
mystery = "mlvp dlwp zy qctolj"
for key in range(26):
    guess = shift(mystery, -key)
    if all(word in WORDS for word in guess.split()):
        print("key", key, "->", guess)

We wrote the code, the messages and the little word list. Run it in a Python 3 editor of your choice; it prints the lines below, character for character.

OutputOutput
coded: phhw ph dw wkh oleudub dw irxu
decoded: meet me at the library at four
zebra +3: cheud
key 11 -> bake sale on friday

The message is coded with a shift of 3 and decoded with minus 3. "zebra" becomes "cheud", because z wraps round to c. The mystery message turns out to have key 11: only that key gives four real words from the list, "bake sale on friday".

What the child is really learning

Strings as data, one character at a time. A function with inputs and an output. Modular arithmetic, the wrap-around that clocks, calendars and computers use everywhere. And brute force: when the possibilities are few, a loop can simply try them all.

There is a security lesson too. A code with only 26 keys is easy to break, which is why real encryption uses keys with far more possibilities. Ten year olds find that thrilling.

Practice for next time (ours)

1. What does "abc" become with key 25? 2. Make the program keep capital letters capital. 3. Encode a message with key 13, then encode the result with 13 again. What happens, and why? 4. Count how many letters of a message are "e" after decoding; why might that help crack a code without a word list?

Answers: 1 is "zab". For 3, you get the original message back, since 13 plus 13 is 26, a full turn. Question 4 leads to frequency analysis; if your child enjoys it, our cipher challenge preparation page shows where it goes.

A contest at ten

Is there a coding competition a ten year old can enter in Hong Kong?

Yes. HKPSOI, the primary schools' informatics olympiad, takes P4, P5 and P6 entrants through their schools. Its problems are set in Blockly, so a ten year old who now writes Python still answers in blocks.

The 2026/27 dates

For 2026/27 the organiser has set the online heat for the fortnight beginning 7 December 2026, ending on the 18th, with the final on Saturday 20 February 2027. Only a school's top four scorers are ranked together, and at most 180 go through.

Parents cannot enter a child directly; the school does it, usually through the ICT teacher.

How we help

With our own puzzles, not the organiser's: tracing programs, predicting loops, finding the bug. Children who type Python find block puzzles easier, not harder, because they already read programs closely.

We are not connected with HKPSOI or HKOI and never promise a result.

Choosing

Python, maths through code or games: which suits a ten year old?

All three picks above take ten year olds. The free first class includes a short typed task, so the mentor can see how your child handles syntax and suggest the course that fits.

Choosing at ten: our guide
Your childStart withNext step
Has used blocks and wants to typePython and AI for KidsAI Literacy or web pages
Loves numbers and puzzlesMaths Through CodingContest maths or C++ for Kids
Wants to make "real" gamesGodot Game DevelopmentBigger games with physics and levels
Has never codedA short Scratch start, then PythonPython within a term
Wants to build websitesWeb Development for KidsJavaScript as a teen

How we usually place ten year olds. Age ranges as printed on each course page: Python and AI for Kids, nine to twelve; Maths Through Coding, ten to fifteen; Godot, ten to seventeen; web and C++ for kids, nine to twelve.

One to one at ten

Hong Kong lessons with us never include other pupils. At ten, the gain is depth: the mentor can follow a good question ("could we make the code harder to crack?") for a whole lesson.

It also means homework-heavy weeks are handled: the lesson can move, or become a lighter project session.

In English

Python keywords are English words, so learning them in English saves translating twice. Mentors work from India and speak plainly, slowing down where needed; Cantonese and Mandarin are not offered.

Why families here choose English-medium coding is covered on our taught-in-English page.

Progress

What will a ten year old be able to do after a term of Python?

Our own milestones for ten year olds learning Python, used for placement and monthly notes. They are ours, not a school measure.

Ten year olds in Python: our milestones
MilestoneYour child canProof
1. Input and outputAsk a question and use the answerA greeting that uses their name
2. StringsLoop over a message letter by letterA message printed backwards
3. FunctionsWrite and reuse a named functionOne shift function that codes and decodes
4. RemaindersUse % to wrap aroundz shifted by 3 lands on c
5. SearchTry many options in a loop and keep the right oneA key found without being told
6. ProjectPlan, build and test aloneA quiz, a game or a cipher tool shown to the family

For children

When the alphabet runs out, wrap round.

If there are only a few possibilities, try them all.

For parents

Milestone 3 is a turning point: the child starts organising code, not just writing it.

Ask your child to send you a coded message; try to crack it.

More courses

Nine more courses a ten year old can take

Each runs live in English with a single mentor; the bands use the age range printed on each course.

I

Typed code

Ages 9 to 12

CYO / CODE / 01

Web Development for Kids

Pages built and published.

Open the syllabus

CYO / CODE / 03

Roblox Game Coding

Luau scripts for shared games.

Open the syllabus
II

AI and projects

Ages 8 to 14

CYO / AI / 01

AI Literacy for Kids

Training a model, then fooling it.

Open the syllabus

CYO / AI / 02

Vibe Coding for Kids

Describe it, make it, test it.

Open the syllabus
III

Maths that stretches

Ages 10 and up

CYO / MATHS / 01

Middle School Maths Competitions

Contest problems, gently.

Open the syllabus

CYO / MATHS / 02

AMC 8 Preparation

For confident young problem solvers.

Open the syllabus

CYO / MATHS / 03

HTML and CSS for Beginners

Responsive sites from scratch.

Open the syllabus

Timing and setup

When can a P5 child fit in a class?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Mentors keep India time, 2 hours 30 minutes behind Hong Kong in every month of the year.

After school

5 pm in Hong Kong is 2:30 pm in India.

Late evening

An 8 pm class is 5:30 pm for the mentor.

Saturday

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

A laptop

With a real keyboard; typing is the work now.

Python

Free; installed with the mentor in the first lesson.

A notebook

For working ciphers and plans by hand first.

A steady mentor

Nobody new each week.

Monthly note

Projects finished and the next step.

Busy terms

Shift the slot around school tests.

Student work

Projects by our older students

A selection of work from students in longer courses; the student labs page has 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 at ten

Billing is monthly and in Hong Kong dollars, and each payment covers only the month ahead; nothing is collected for later months and no bundle is sold. A gateway charge, where one applies, is spelled out at checkout before payment goes through.

Free first class

Free

no card required

  • A free first class, one to one
  • Your child codes and cracks a message
  • No card to book
Book it

One to one

$1,200 HKD

a month, eight live classes

  • A mentor for your child alone
  • Projects shaped around them
  • Lesson times your family sets
Start here

What families say

Rated 4.9 across 547 Google reviews

Google reviews by parents and students, quoted without changes.

★★★★★

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

Coding at ten: questions and answers

What coding language should a 10 year old learn?

Python, for most. It reads almost like English, runs anywhere for free, and grows with the child into school exams, contests and AI. Children who have not used blocks may do a short Scratch start first.

What does P5 coding at a Hong Kong school cover?

P5 is the second of three EDB upper primary coding modules, announced through EDBCM 32/2024. Schools are asked to give 10 to 14 hours a year. CoolThink materials for P5 include App Inventor and Scratch projects.

What do P5 pupils learn about AI?

In the EDB's pilot primary AI strand, P5 pupils try training an AI with collected pictures, see how skewed data changes its answers, test speech recognition, and compare human and machine learning.

Is ten too young for Python?

No. Most ten year olds type well enough and have the maths for loops and remainders. A one to one mentor makes the first error messages a lesson rather than a wall.

Can my ten year old use ChatGPT for homework or coding?

Not under its own terms: OpenAI sets 13 as the floor and asks for parental consent below 18, while Claude is for adults only. OpenAI also does not list Hong Kong among the places it offers ChatGPT. Our ten year olds write and test their own code, which builds the judgement any later tool will need.

Is there a coding contest for P5?

HKPSOI, the primary informatics olympiad, is entered by schools for their P4 to P6 pupils. In 2026/27 its online heat falls in the first half of December and the final in late February 2027. We make no promises about results.

Are classes one to one?

Yes. A Hong Kong booking is always private: your child, a mentor and a video link.

What language are classes in?

English only. Mentors are in India and adjust their speed to your child; there is no Cantonese or Mandarin option.

Which times can we choose?

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

How are fees charged?

By the month, priced in Hong Kong dollars, and never bundled into a lump sum. Gateway fees, if any, are listed on the checkout page. There is no charge for the trial class.

Related

More for Hong Kong families

Pages that pick up where this one stops.

Coding classes in Hong Kong

Every course, by age.

Python course in Hong Kong

Where Python leads, age by age.

Coding for 10 year olds, worldwide

The same age, outside Hong Kong.

AI course for kids

Training models, honestly.

Coding for 11 year olds

The year ahead.

Coding class fees

What drives 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 ten year old

In the trial lesson your child writes a few lines of Python, encodes a message and has a go at breaking one, while you look on. The mentor then recommends one of the three courses and explains why.

Like to see the syllabus? The Python and AI for Kids and Maths Through Coding pages have full outlines.

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

One child and one India-based mentor, live online, in English. WhatsApp is quickest.

The first class is free, with no card 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