SPK / BLOCK / 01
Coding for Kids with Blocks
Scratch to games, apps and small AI ideas.
Open the syllabusHong Kong · Guide · Ages 7 to 13
Both teach the same core ideas: steps in order, repeating, deciding, remembering a value. Scratch does it with coloured blocks that only fit together in ways that make sense. Python does it with typed English words, where every colon counts. The right first choice depends less on which is “better” and more on your child's age, typing and patience, and this page lays those out against what Hong Kong schools and contests actually use.
Teaching since 2020 · 10,000+ students worldwide · Scratch and Python for Hong Kong children, one to one, live online in English
The short answer
For most Hong Kong children under about 9 or 10, start with Scratch: blocks remove typing errors so the child learns the ideas. Move to Python when typing is easy and the child wants more, often at 9 to 11. Teenagers can start with Python directly, since DSE ICT, HKOI and IGCSE use typed languages. Modern Age Coders teaches both, live online, one to one, in English, at times that suit Hong Kong families.
Courses for both paths
A Scratch course, a Python course for children, and a Python course for teenagers who skip the blocks. The free first class tells you which one fits.

SPK / 01
Blocks, sprites and events, building to full games. The natural first course for a child of 7 to 10.
Open the syllabus →
SPK / 02
The step from blocks to text: turtle graphics, quizzes and games, with the Scratch ideas renamed in Python words.
Open the syllabus →
SPK / 03
For a teenager starting fresh or moving on: the full language and the algorithms secondary exams ask for.
Open the syllabus →Side by side
Scratch is a visual language made for children; Python is a typed language used by children and professionals alike. They share ideas and differ in how much the keyboard gets in the way.
| Scratch | Python | |
|---|---|---|
| What you write with | Coloured blocks dragged into place | Typed words, numbers and symbols |
| Made by | The Lifelong Kindergarten group at the MIT Media Lab | The Python Software Foundation and its community |
| Age its makers name | Mainly 8 to 16 (ScratchJr for 5 to 7) | No age; described as “friendly & easy to learn” |
| Typing errors | Impossible: blocks only fit where they make sense | Common at first: colons, brackets, capitals |
| What you can see | Sprites move on a stage at once | Text output, then graphics and games with libraries |
| Cost | Free, runs in a browser | Free to download and use |
| Ceiling | Games and stories; big projects get unwieldy | Used for data, AI, web and exams |
| Language of the words | English labels (other languages available) | English keywords: if, while, print |
Sources: Scratch Team, information for parents; ScratchJr, About page; python.org, About page. Read 23 November 2026. The rows on typing, ceiling and what you see are our own teaching view.
A loop is a loop. “Repeat 10” in Scratch and for i in range(10): in Python do the same thing, and a child who understands one understands the other within a lesson or two.
The same goes for variables, conditions, events and lists. That is why a year of Scratch is not wasted when a child moves on: the ideas transfer whole; only the spelling is new.
Precision. Python refuses to run a program with a missing colon or a capital letter in the wrong place. For an adult that is a minor nuisance; for a seven-year-old it can swallow a whole lesson.
Reach. Once a child has the precision, Python goes where Scratch cannot: reading files, working with data, building a website, training a small AI model.
Where Hong Kong uses each
Blocks at primary, typed code at secondary. The upper primary coding supplement names block and hardware tools; the primary olympiad uses Blockly; from secondary contests to DSE, the languages are typed.
| Stage | Language or tool | What the source says |
|---|---|---|
| Upper primary lessons (P4 to P6) | Scratch, App Inventor, Arduino, micro:bit | EDB's computer programme was updated “by including the latest tools such as Scratch, App Inventor, Arduino and micro:bit” |
| Primary olympiad (HKPSOI) | Blockly blocks | “Both events will be using the Blockly programming language” |
| Secondary olympiad (HKOI) final | C++ first, Python second | “Not all tasks and subtasks are solvable using Python.” |
| HKDSE ICT (S4 to S6) | Python or C++; SQL for databases | Listed in the ICT Curriculum and Assessment Guide |
| IGCSE Computer Science 0478, first exams 2029 | Python only | Python 3 “as the only language for teaching, assessment and programming questions” |
| Cambridge A level 9618, 2027 to 2029 | Python, Java or Visual Basic | Cambridge added the three and removed Pascal |
Sources: CDC, Computational Thinking: Coding Education supplement (2020); HKPSOI introduction and HKOI rules (hkoi.org); EDB, ICT Curriculum and Assessment Guide (S4 to 6), 2021; Cambridge International, 0478 and 9618 syllabus pages. All read 23 November 2026. Each school chooses its own tools within these documents.
| Group and language | Took the Heat | Reached the Final |
|---|---|---|
| Senior, Python | 292 | 24 |
| Senior, C++ | 158 | 75 |
| Junior, Python | 216 | 25 |
| Junior, C++ | 199 | 73 |
Source: HKOI, 2026 statistics (assets.hkoi.org/ref/2026stats.pdf), read 23 November 2026. These are HKOI's published counts; we draw no conclusion about any one student from them.
More secondary students sit the HKOI Heat in Python than in C++, but far fewer Python takers reach the Final. HKOI's own rules explain part of it: the Final is set in C++ and some tasks cannot be solved in Python.
For a primary child that is years away. It does show that Python is a starting language, not always the finishing one, for a contest-minded child. Our HKOI Heat papers explained page goes further.
Very little pressure to choose now. Scratch builds the ideas, Python builds typing precision, and C++ can come at secondary for the few who want contests.
For DSE ICT or IGCSE, Python is enough on its own. Our IGCSE Computer Science tutor page covers the Python-only Cambridge change in detail.
Same game, twice
A number-guessing game, first as the Scratch blocks a child would drag in, then as Python. Read them side by side: every block has a Python twin. Then the second half of the Python shows three mistakes that blocks never let a child make.
when green flag clicked
set [secret] to (7)
set [tries] to (0)
repeat until <(answer) = (secret)>
ask [Guess my number] and wait
change [tries] by (1)
if <(answer) < (secret)> then
say [Higher!] for (1) seconds
else
if <(answer) > (secret)> then
say [Lower!] for (1) seconds
say (join [Got it in ] (tries))Our own example. In Scratch these are coloured blocks: the orange ones hold variables, the yellow ones start and loop, the purple one makes the sprite speak. We have written them out so you can compare them with the Python below.
# A Scratch guessing game, rewritten in Python. Our own example.
# The guesses are typed into a list so the program runs the same way every time.
secret = 7
guesses = [3, 9, 7]
tries = 0
for guess in guesses:
tries = tries + 1
if guess < secret:
print(guess, "-> Higher!")
elif guess > secret:
print(guess, "-> Lower!")
else:
print(guess, "-> Got it in", tries, "tries")
break
# Three slips that blocks make impossible. Python reports each one.
slips = {
"missing colon": "if tries > 2\n print('slow')",
"capital P": "Print('hi')",
"open quote": "print('hi)",
}
for name, line in slips.items():
try:
exec(compile(line, "game", "exec"))
except Exception as e:
print(name.ljust(14), "->", type(e).__name__ + ":", e.args[0])Our own example. The list of guesses stands in for a child typing answers, so the run is the same every time. We ran it with Python 3.14; the output panel shows exactly what it printed. Older Python versions word some error messages a little differently.
3 -> Higher! 9 -> Lower! 7 -> Got it in 3 tries missing colon -> SyntaxError: expected ':' capital P -> NameError: name 'Print' is not defined open quote -> SyntaxError: unterminated string literal (detected at line 1)
The first three lines are the game. The last three are Python refusing three slips: a missing colon, a capital letter on print, and a quotation mark that is never closed. In Scratch none of these can happen, because the blocks have no colons, no capitals to get wrong and no quotes to close.
| Scratch block | Python | The idea |
|---|---|---|
| set [tries] to (0) | tries = 0 | A variable |
| change [tries] by (1) | tries = tries + 1 | Updating a variable |
| repeat until <answer = secret> | for guess in guesses: with break | A loop that stops |
| if <answer < secret> then / else | if / elif / else | Choosing |
| say [Higher!] | print("Higher!") | Output |
guesses to [7]. What does the game print, and how many tries?break. Then make guesses [7, 7]. What changes, and why?Which for my child
Match the language to the child in front of you. Age is a rough guide; typing, reading and temperament decide.
| Your child | Start with | Why |
|---|---|---|
| 5 to 7, pre-reader or early reader | ScratchJr or picture blocks, with you beside them | No reading or typing needed |
| 7 to 9, reads simple English | Scratch | Ideas first, no spelling errors |
| 9 to 11, types comfortably | Scratch for a few months, or Python directly | Depends on patience with detail |
| 9 to 11, has used Scratch a year or more | Python | Ready for what blocks cannot do |
| 12 and over, new to coding | Python | Typing and reading already in place |
| 12 and over, aiming at HKOI | Python, then C++ | The HKOI Final is set in C++ |
| Any age, easily frustrated | Scratch, even if older | Early wins build confidence |
Our own advice from one-to-one teaching. ScratchJr's and Scratch's age ranges are their makers' own.
Your child is under nine, is still building English reading, or tends to give up when something goes wrong. Scratch gives quick, visible results, and a sprite that dances on the first day is a strong reason to come back.
It is also right for a child who loves telling stories or drawing: Scratch is as much an animation studio as a language. Our Scratch classes for kids page shows a full course.
Your child types without hunting for keys, reads short English messages, and is curious about “real” code. Many ten- and eleven-year-olds are already bored by blocks and light up with Python.
And for teenagers, Python first is usually right. For a broader view of Python for younger learners, see Python for beginner kids; for every Python course we offer Hong Kong learners, see our Python course in Hong Kong page.
Making the switch
Gradually, by rebuilding things they already made. A child who rewrites their own Scratch game in Python learns the new spelling without having to learn new ideas at the same time.
With one-to-one lessons, most children who are ready make the move in four to eight weeks. The first fortnight is the slowest, while fingers and eyes learn where colons and brackets go.
Some children go back to Scratch for fun while learning Python. That is fine; nothing is lost.
Some children cross through a tool that shows blocks and text together. Others step through App Inventor, which Hong Kong's upper primary programme also names; our App Inventor for kids page explains it.
For children who live in Minecraft, coding inside the game can bridge the gap; see Minecraft coding classes in Hong Kong.
Practical details
Less for Scratch, a little more for Python. Python's keywords and error messages are English, which is one reason Hong Kong families choose lessons taught in English.
| Hong Kong time | India time | Often suits |
|---|---|---|
| 5:00 pm, weekday | 2:30 pm | After school and a snack |
| 7:30 pm, weekday | 5:00 pm | Older children after homework |
| 3:00 pm, Sunday | 12:30 pm | A relaxed weekend lesson |
Hong Kong keeps UTC+8 and India UTC+5:30 all year, with no summer time on either side, so the gap is always 2 hours 30 minutes. The rows are our own conversions.
Scratch blocks can be shown in Chinese, but our lessons use the English labels so the move to Python is smooth. The mentor speaks slowly and types new words into the chat.
Error messages such as “name is not defined” are short English sentences; reading them aloud is part of every lesson. All lessons are in English, never Cantonese or Mandarin; see coding classes taught in English.
From blocks to text
Our own outline for a child who starts with Scratch at about 8. The months are typical, not fixed.
| Stage | Tool | The child can |
|---|---|---|
| Months 1 to 3 | Scratch | Make sprites move and talk; use events and simple loops |
| Months 4 to 6 | Scratch | Use variables, conditions and clones; finish a game with a score |
| Months 7 to 9 | Scratch to Python | Rewrite a Scratch game in Python, one block at a time |
| Months 10 to 12 | Python | Write loops, functions and lists from a plan |
| Year 2 | Python | Save files, use libraries, build a project of their own |
| Later, if wanted | C++ | Prepare for HKOI tasks that need it |
Your Scratch games are your first Python projects. Rebuild them.
Error messages are hints. Read them before asking.
A slow first fortnight in Python is normal. Judge progress after a month.
Ask your child to show you one Scratch block and its Python twin.
More courses
Live online and in English; in Hong Kong all one to one.
SPK / BLOCK / 01
Scratch to games, apps and small AI ideas.
Open the syllabusSPK / BLOCK / 02
Blocks first, then real code in the game.
Open the syllabusSPK / BLOCK / 03
Plan a Scratch game in words, build it, test it.
Open the syllabusSPK / TEXT / 01
Typed Luau in a game world.
Open the syllabusSPK / TEXT / 02
Python and number puzzles together.
Open the syllabusSPK / TEXT / 03
How AI learns, with small experiments.
Open the syllabusSPK / NEXT / 01
The HKOI Final language, from zero.
Open the syllabusSPK / NEXT / 02
Python and theory for the Cambridge exam.
Open the syllabusSPK / NEXT / 03
Python models within tool age rules.
Open the syllabusHow lessons run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. The mentor starts with whichever language fits your child and moves on when the child is ready; India, where mentors teach from, runs two and a half hours behind Hong Kong.
After school
Hong Kong 5 pm is 2:30 pm for the mentor.
After homework
Hong Kong 7:30 pm matches 5 pm in India.
Sunday afternoon
3 pm in Hong Kong, 12:30 pm in India.
A short block task and a short typed task in the first class.
No juggling two new languages at once.
Scratch games become Python exercises.
Every message turned into plain words.
The mentor watches the child build, live.
Projects in both languages stay with the child.
Student work
Scratch and Python projects from students in longer courses. See more in the student labs.

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

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

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

Web app
A weather forecasting site with live conditions for any location.
Fees
Scratch and Python cost the same with us: one monthly fee, shown in Hong Kong dollars, paid for one month at a time with no prepaid package. If you pay by card or wallet, the gateway charge is listed on the payment screen before you confirm.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
Families who have learned Scratch, Python or both with us, writing 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 parents ask
Neither is better in general. Scratch suits most children under about 9 or 10, because blocks remove typing errors. Python suits children who type comfortably and want to go further. Many children do both, Scratch first.
The Scratch Team says it is primarily designed for 8 to 16 year olds, and also used by younger children with their parents. ScratchJr, from the same family, is made for ages 5 to 7.
Usually from about 9 to 11, once typing and reading short English sentences are comfortable. Some start earlier; teenagers can start with Python directly.
No. Loops, conditions, variables and events are the same ideas in both, so a child moving from Scratch to Python learns new spelling, not new thinking.
Mostly block-based tools. EDB's upper primary programme names Scratch, App Inventor, Arduino and micro:bit among its tools, and the primary olympiad HKPSOI uses Blockly. Each school chooses its own.
EDB's ICT Curriculum and Assessment Guide lists Python and C++ for programming, with SQL for the databases elective. Python on its own is enough for the exam.
Yes, as a second-class language. HKOI's rules say solutions are in C++ (C++20), that Python is also available, and that not all tasks and subtasks are solvable using Python.
Yes, if they are about 10 or older, type easily and cope with small errors. The free first class tries both so the mentor can tell you.
Every lesson is live and in English. Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends.
No. Scratch runs free in a browser and Python is free to download. A computer with a keyboard is needed for Python; a tablet works for ScratchJr.
Related
Pages for the next decision.
Every course we offer Hong Kong families.
Python for every age, from first lines to exams.
What a full Scratch course covers.
How a live lesson runs from home.
Where Python leads in secondary school.
Ideas for after the switch.
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 · 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 · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
In the free first class the mentor sets one block task and, if it fits, one typed task, then tells you plainly which language to start with and why.
Want to look first? See the course list and how we teach.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Classes are live online, one to one and in English, taught by mentors in India. Ask us anything on WhatsApp.
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