Hong Kong · Python for kids · Ages 9 to 12

Python for kids in Hong Kong

Somewhere around P4 or P5, a lot of children outgrow coloured blocks. They want to type, to see their own words become a program, to make something that looks like what grown-ups write. Python is the language we give them. Our classes for 9 to 12 year olds are live and online, one child with one mentor, in English, and every lesson ends with code your child typed and ran.

Teaching since 2020 · 10,000+ students worldwide · Hong Kong lessons are always one to one, live and in English

The short answer

Modern Age Coders teaches Python to Hong Kong children of about 9 to 12 in live online classes, one to one and in English, at a Hong Kong time the family sets. Children type real Python from the first lesson: questions and answers, decisions and loops, turtle drawings, lists and functions, then games in Pygame and a final phase on how AI works, using tools suitable for their age. Python is also the language Hong Kong exams lean on later. The first class is free.

Courses

Which Python course suits a child of 9 to 12?

Nearly every child in this age band starts with the first course. The other two run beside it or after it, depending on whether your child leans towards maths or towards understanding AI.

Ready to type?

Is my child old enough to learn Python?

Usually from about 9, sometimes a little earlier. The question is less about age than about three skills: reading short instructions, typing without hunting for every key, and staying with a problem for ten minutes.

Signs a child is ready for typed Python (our checklist)
SignReadyNot yet
ReadingReads a two-line instruction aloneNeeds every sentence read aloud
TypingFinds letters and brackets without much searchingOne finger, a long hunt per key
PatienceTries again after a red error messageGives up at the first error
Prior codingHas finished a project in blocksHas never coded, and is under 8
MotivationAsks how real apps or games are madeMainly wants to play

Our own checklist from placement classes. A child who is “not yet” on two or more rows usually does better with blocks first; see our Scratch coding classes.

Why Python, and not another language

Python reads almost like short English sentences, and its error messages name the line that went wrong. It also comes with a drawing tool built for learners. The Python documentation says turtle graphics “is an implementation of the drawing tools introduced in Logo in 1967”, and that “its instant, visible feedback makes it an effective way for learners to encounter programming concepts.”

A child types forward(100) and watches a line appear. Ten minutes later a loop draws a star. Few first lessons in any language give that much back so quickly.

Why not wait until secondary school

Hong Kong primary schools give upper primary pupils about 10 to 14 hours of coding a year, mostly with blocks (EDBCM No. 109/2023). That is a good start and a short one. Children who type comfortably by 11 arrive in S1 able to think about the problem instead of the keyboard.

There is no rush either. A child of 9 who is not ready loses nothing by spending a term on Scratch first; the ideas transfer whole.

Python later on

Where will Python matter later in a Hong Kong school career?

In more places than most parents expect: the HKDSE ICT exam, the Hong Kong Olympiad in Informatics, and Cambridge IGCSE Computer Science all use it. None of that is a reason to push a nine year old, but it is a good reason to choose Python over a language that leads nowhere.

Where Python turns up after primary school in Hong Kong
WhereWhat the organiser publishesYear
HKDSE ICT, programming partsPascal, Python and C++ for the 2027 HKDSE; Python and C++ from the 2028 HKDSE onwardEDB guide, 2021
HKOI Junior Group heat216 Python takers and 25 finalists; 199 C++ takers and 73 finalists2025/26 heat
Cambridge IGCSE Computer Science 0478The next syllabus uses “Python 3 as the only language for teaching, assessment and programming questions”First exams 2029

Sources: EDB, Information and Communication Technology Curriculum and Assessment Guide (S4 to 6) (2021), Appendix 3, table read against the printed page; HKOI, 2026 statistics; Cambridge International, IGCSE Computer Science 0478 page. All read 23 November 2026. The EDB adds that the languages “will be reviewed from time to time on a need basis.”

Reading the HKOI numbers honestly

By our own division, in the 2025/26 Junior heat about 12 Python takers in every hundred reached the final, against about 37 in every hundred C++ takers. That does not mean Python is a weak start. It means the strongest young contestants tend to move on to C++, which suits contest problems. Python is how most of them began.

For contest-minded children we add C++ later, usually from about 12. We prepare students for the heat event and never promise a place in the final. The olympiad is entered through the organisers, not through us.

What school gives in between

Between P6 and S4, local schools cover AI and computing in a modest number of hours, and international schools follow their own computing courses, often leading to IGCSE. In both cases a child who already types Python fluently treats school computing as revision, not as a new language.

For older learners and the exam years, our Python course for Hong Kong teens and adults takes over where this page stops.

A sample lesson

What does a Python lesson for kids look like?

Children love secrets, so one of our favourite early lessons is a secret-message machine. Your child writes a program that scrambles a sentence by shifting every letter, unscrambles it, and then breaks a message whose key nobody told them. Every step is a few lines of real Python.

  1. Letters are numbers inside. Python's ord gives the number behind a letter (the documentation's own example: ord('a') returns the integer 97), and chr turns a number back into a letter.
  2. Shift every letter. Turn the letter into a number, add the key, turn it back. Spaces stay as they are.
  3. Wrap round the alphabet. Shifting y by 3 should give b, not a symbol. The remainder sign % does that: after 26, start again at 0.
  4. Decode by shifting back. The same function with a minus key undoes the code. One function, two jobs.
  5. Break a message. There are only 25 possible keys, so try them all and keep any answer that contains ordinary English words.
A secret-message machine, and how to crack itPython
# Secret messages with a shift cipher, then breaking one. Our own example.
def shift(text, key):
    out = ""
    for ch in text:
        if "a" <= ch <= "z":
            out += chr((ord(ch) - ord("a") + key) % 26 + ord("a"))
        else:
            out += ch
    return out

secret = shift("meet me at the ferry pier at four", 3)
print("1. Coded with key 3 :", secret)
print("2. Decoded with -3  :", shift(secret, -3))
print("3. Why % 26? 'y' moved 3 ->", shift("y", 3), "| without % 26 ->", chr(ord("y") + 3))

COMMON = {"the", "at", "me", "and", "to", "a", "is", "in", "are"}
mystery = "esp ofxawtyrd lcp ty esp cpo mzi"
print("4. Try every key on:", mystery)
for key in range(1, 26):
    guess = shift(mystery, -key)
    hits = sum(word in COMMON for word in guess.split())
    if hits:
        print(f"   key {key:>2}: {guess}  ({hits} common words)")

Our own program, written for this page. The printout below comes from running exactly this code with Python 3, unchanged.

OutputOutput
1. Coded with key 3 : phhw ph dw wkh ihuub slhu dw irxu
2. Decoded with -3  : meet me at the ferry pier at four
3. Why % 26? 'y' moved 3 -> b | without % 26 -> |
4. Try every key on: esp ofxawtyrd lcp ty esp cpo mzi
   key 11: the dumplings are in the red box  (4 common words)

Line 3 shows why the remainder matters: without % 26, shifting y by 3 runs past the end of the alphabet and lands on a symbol. Line 4 tries all 25 keys on a message we coded with a key we did not reveal; only key 11 produces common English words.

What your child learns

Loops over text, if and else, a function with two inputs, and the remainder operator, which many children meet here before they meet it in maths. Also a first taste of a real idea in computer security: a code with only 25 keys is no protection at all, because a computer can try every one in a blink.

And English, quietly. Deciding whether a guess “looks like English” is a reading exercise; children usually suggest better word lists than ours.

How the mentor teaches it

Nothing is pasted. Your child types each line while the mentor watches the shared screen, and every error is read aloud and fixed by the child: a missing bracket, a colon left out, a capital letter that the program ignores.

Before running anything, the mentor asks for a prediction: what will shift("cat", 1) print? Guess first, run second. That small habit is most of what good programmers do.

  1. Your turn: predict. What does shift("zoo", 1) print? Work it out on paper, then run it.
  2. Capital letters. The machine ignores capitals. Change it so Hong Kong keeps its capital letters but still gets coded.
  3. Make it harder to crack. Use a different key for every second letter. Can the try-every-key loop still break it?
  4. Say it. Explain to someone at home, in two English sentences, why 25 keys is too few.

Thirty-two weeks

What does a child build in a Python course?

Our course runs in four phases of about eight weeks. Each has its own kind of project, so a child who loves drawing and a child who loves games both find their favourite stretch.

Python and AI for Kids: phases and sample projects (our course)
WeeksPhaseSample projects
1 to 8Python basics: input, variables, decisions, loopsA greeting program; a Mad Libs generator; rock, paper, scissors; a guessing game
9 to 16Turtle art, lists and functionsA rainbow spiral; a turtle race; a to-do list; a text adventure built from functions
17 to 24Files, objects and PygameA quiz that saves scores; a virtual pet; a snake game; a platform jumper
25 to 32How AI works, kid-safeA pattern recogniser; a class survey analyser; a model trained on your own pictures; the capstone

Source: our Python and AI for Kids course plan (32 to 40 weeks). Taught one to one, so the mentor can stretch a phase your child enjoys. Week-by-week detail is on the course page; for ideas to try between lessons, see Python projects for kids.

At the end your child presents the capstone and sits a short final check, after which we issue our own certificate of completion. It is a record of what your child built with us, not a school qualification, and no Hong Kong authority, school or exam board stands behind it.

At home

What does my child need at home to learn Python?

A laptop or desktop computer, Python installed, a camera and microphone for the call, and a quiet corner. Nothing needs to be bought.

Python itself

Free from python.org. It includes IDLE, which the documentation calls “Python's Integrated Development and Learning Environment”: a simple window to type and run code.

The turtle

The docs note that turtle “requires the tkinter optional module” and that the python.org installers for Windows and macOS include it. In the free class we check it draws.

A real keyboard

Tablets make typed code slow and frustrating. A Chromebook can work through a browser editor; the mentor sets it up with you.

If the turtle window will not open, or an error mentions tkinter, our page on fixing Python turtle problems covers the usual causes. Most are solved in the first class.

AI and age limits

Will my child use ChatGPT or other AI chatbots in class?

No. In a course for 9 to 12 year olds, children learn how AI works by building small pieces of it themselves, with tools suited to their age. They do not sign up for chatbot accounts.

What the terms say

OpenAI's terms for ChatGPT say “You must be at least 13 years old”, and add: “If you are under 18 you must have your parent or legal guardian's permission to use the Services.” Some other chat assistants are for adults only. ChatGPT is not offered in Hong Kong by OpenAI in any case, so it has no place in our lessons for children.

So our final phase uses things a child can make and inspect: a program that spots a pattern in numbers, a survey analyser, a picture model trained on the child's own examples. Children see that AI is made of data and rules, and that it can be confidently wrong.

Why typing it yourself still matters

A child who has typed a loop knows what one is. A child who has only asked a chatbot for one knows where to find it. We want the first kind. Our page on thinking with AI rather than copying from it explains our approach.

For more on what AI teaching looks like at this age, see our AI course for kids in Hong Kong.

English and one to one

Why learn Python one to one, in English?

Typed code produces small, precise mistakes, and a beginner needs someone to see each one as it happens. Python's keywords are English words too, so the lesson doubles as language practice.

One child, one mentor

Hong Kong families get one-to-one lessons and nothing else. With one screen to watch, the mentor notices the missing colon before your child is frustrated by it, and asks a question rather than giving the answer.

It also lets the course bend. A child who finds loops easy moves on in a lesson; a child who wants three more turtle drawings gets them.

English as part of the lesson

Words like print, if, while and return are English, and so is every error message. Mentors talk at an easy pace, write new words in the chat, and ask children to explain their programs out loud.

There is no Cantonese or Mandarin teaching. For more about learning code through English, see coding classes taught in English in Hong Kong.

Example lesson times: Hong Kong and India
Your child starts atIn India it isOften suits
4:45 pm, weekday2:15 pmA child with a snack and a short rest after school
7:15 pm, weekday4:45 pmA child who does homework first
11:00 am, Saturday8:30 amFamilies with busy weekday evenings

Hong Kong is on UTC+8 and India on UTC+5:30 throughout the year, with no daylight saving in either, so the difference never moves from two and a half hours (IANA time zone database). The rows are our own examples, not set slots.

Progress

How will I know the Python is sinking in?

Our own milestones for children learning Python, used in placement and in monthly notes home. They are not school levels or an official framework.

Python for kids: our milestones
MilestoneYour child canAsk to see
1. TalkPrint, ask a question, store the answerA program that greets you by name
2. ChooseUse if, elif and else with comparisonsA quiz that says right or wrong
3. RepeatWrite for and while loops that stop when they shouldA turtle pattern or a guessing game
4. OrganiseUse lists and write their own functionsA to-do list or a high-score table
5. BuildCombine files, objects and Pygame into a gameA game a sibling can play
6. ExplainPlan, test and present an original projectThe capstone, explained in English

For children

Guess what will print before you press run.

Red text is not a disaster. Read the last line of it first.

For parents

Ask your child to change one number in last week's program and predict the result. If they can, it is sinking in.

Milestone 3 is where many children start writing programs nobody asked them to write.

More courses

Nine more courses for young Python learners

All live and taught in English; in Hong Kong, all one to one.

I

Before or beside Python

Ages 6 to 12

PAG / EARLY / 01

Scratch Coding for Kids

Blocks, for children not yet typing.

Open the syllabus

PAG / EARLY / 02

Computational Thinking for Kids

Breaking problems into steps, with and without a computer.

Open the syllabus

PAG / EARLY / 03

Minecraft Coding for Kids

Code that builds in a world children know well.

Open the syllabus
II

Making things

Ages 8 to 17

PAG / MAKE / 01

Web Development for Kids

Pages, styles and a little JavaScript, published at the end.

Open the syllabus

PAG / MAKE / 02

Godot Game Development

A real game engine and its Python-like scripting.

Open the syllabus
III

After the kids' course

Ages 8 to 18

PAG / NEXT / 01

Python for Teens

The full language, from about 13.

Open the syllabus

PAG / NEXT / 02

Vibe Coding for Kids

Describe a program clearly, then test what comes back.

Open the syllabus

PAG / NEXT / 03

Game Development for Kids

Scratch, Roblox and Minecraft games compared.

Open the syllabus

How classes run

When do Python lessons happen, and what is a lesson like?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Python runs on your child's own computer while the mentor, in India, follows on the shared screen; India's clocks are two and a half hours behind Hong Kong's.

Late afternoon

4:45 pm in Hong Kong is 2:15 pm for the mentor.

Evening

Begin at 7:15 pm; the mentor's clock shows 4:45 pm.

Weekend

Saturday or Sunday, at an hour your family keeps free.

One goal

Each lesson aims at one working program.

Typed, not pasted

Your child types every line, however slowly at first.

Guess, then run

A prediction before every run.

Errors read aloud

The last line of an error message is read and acted on.

Saved and named

Every program is saved, so progress is visible.

Short practice

One small task before the next lesson.

Student work

Built by our students

Projects from learners across our longer courses. Browse more in our student labs.

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

Python class fees for children

Fees are charged one month at a time and shown in Hong Kong dollars. There is no lump sum and no paying ahead; any payment-gateway charge appears before you confirm. Python and every tool in the course are free to install.

Free first class

Free

no card required

  • A free first class, one to one
  • A check of reading and typing: Python now or blocks first
  • No card needed to book
Book it

One to one

$1,200 HKD

a month, eight live classes

  • A mentor who knows your child's work
  • Projects tuned to drawing, games or maths
  • Times that fit your family's week
Start here

What families say

Rated 4.9 across 547 Google reviews

Reviews from parents and students, exactly as they appear on Google.

★★★★★

"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

Questions from Hong Kong parents

Python for kids: questions and answers

Which language is used to teach?

English in every lesson. Mentors teach live from India at a comfortable pace and write new words in the chat. Python's own keywords are English, so children practise both at once. Lessons are not given in Cantonese or Mandarin.

Is the class one to one?

Yes, always. Hong Kong families are offered one-to-one lessons only, with the same mentor from week to week.

When can my child have lessons?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India is two and a half hours behind Hong Kong, so a 7:15 pm Hong Kong lesson is 4:45 pm for the mentor.

Is 9 too young for Python?

Not for most children who read short instructions and type a little. Our course is built for 9 to 12. A younger child, or one who is not ready, starts with Scratch and moves to Python later.

My child knows Scratch. Will that help?

A great deal. Loops, decisions and variables carry straight over; only the typing is new. Scratch children often move through the first phase quickly.

Will Python help with DSE ICT later?

It is one of the languages the EDB lists for the programming parts of HKDSE ICT, alongside C++ (and Pascal for the 2027 exam only). That is years away for a child of 9 to 12; what helps now is thinking clearly in code.

Will my child use ChatGPT?

No. OpenAI does not offer ChatGPT in Hong Kong, and its terms require users to be at least 13, with a parent's permission under 18. Our AI phase uses tools children can build and inspect themselves.

What computer do we need?

A Windows PC, Mac or Chromebook with a keyboard, plus a camera, microphone and steady internet. Python is free; the mentor helps you install it in the first class.

How much practice is there between lessons?

A short task, usually twenty to thirty minutes. We would rather your child practises a little often than a lot once.

How are fees paid?

Monthly, in Hong Kong dollars, never in advance for later months. If a payment-gateway charge applies it is shown before you pay. The first class is free.

Is there a certificate?

Yes, our own certificate of completion after the capstone and a short final check. It records what your child built with us; it is not a school or government qualification.

Related

Further reading for Hong Kong parents

Pages on the steps before Python, beside it and after it.

Coding classes in Hong Kong

Our full list of courses for Hong Kong, by age.

Scratch coding classes

Blocks first, for younger children.

Python course in Hong Kong

Teens, exam years and adults.

Python for beginner kids

Our general guide for families anywhere.

Python games for kids

Small games to make at home.

How we teach

Inside a live one-to-one lesson.

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 · By age and school level: Adults · 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 Python class

In the free lesson your child types a first program that asks a question and answers back, the mentor sees how they read and type, and you hear plainly whether to start Python now or after some blocks.

Want the detail? Every phase is set out on the course page, and how we teach walks through a lesson.

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

Lessons are live, online and taught one to one in English by mentors in India. WhatsApp reaches us fastest.

Free. No card, no contract.

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