GEA / BASE / 01
Python for Teens
The language every later stage of the path relies on.
Open the syllabusHong Kong · Generative AI · Teens 13+ and adults
Most people in Hong Kong who use a chatbot have never seen how it decides what to say next. A generative AI course worth paying for starts there: the model scores possible next words, turns the scores into chances and draws one. Once a learner has watched that happen in their own code, prompts, mistakes and the government's new guidance all make more sense. We teach it live and one to one, in English, to teenagers from 13 and to adults.
Teaching since 2020 · 10,000+ students worldwide · Hong Kong learners study one to one, live online, in English
The short answer
Modern Age Coders teaches a generative AI course for Hong Kong learners from age 13 to adult: live online classes, one to one and in English, at hours that suit a Hong Kong day. Learners see how a language model chooses each word, why it can state false things fluently, how to prompt and check it, and, for adults, how to build small retrieval tools and agents. The course follows the risks named in the Digital Policy Office's 2025 generative AI guideline and respects each tool's age rules. The first class is free.
Start here
Three starting points cover nearly everyone who asks us about generative AI from Hong Kong. Each runs as private lessons with one mentor.

GEA / 01
For adults and university students. How large language models are trained and sampled, prompting with evidence, retrieval over your own documents, and small agents, all built in Python and tested before they are trusted.
Open the syllabus →
GEA / 02
For secondary students. Text and image generators used within their age terms, with a parent agreeing where the vendor requires it: prompting, checking claims, citing honestly and making real projects.
Open the syllabus →
GEA / 03
For working adults who want generative AI inside their daily work: scripts that draft, summarise and sort, calling a model your employer provides or one running on your own machine, with a clear line on what never goes into a prompt.
Open the syllabus →In the government's words
Hong Kong has an official reference for this. The Digital Policy Office published the Hong Kong Generative Artificial Intelligence Technical and Application Guideline on 15 April 2025, and the copy on its website today is version 1.1, dated December 2025.
| Question | What the guideline says | Where |
|---|---|---|
| Who it is for | Three roles: Technology Developers, Service Providers, and Service Users | Background section |
| How text is produced | From a prompt or context, a model "predicts and generates the subsequent text content" | Section 1.3.1 |
| Main model families | GANs, variational autoencoders, autoregressive models, diffusion models and transformer models | Section 1.2 |
| Biggest technical limit | Model hallucination, which "has not been possible to completely eliminate" | Section 2.1 |
| A surprising weak spot | Simple tasks such as "counting" are prone to errors | Section 2.1 |
| Governance | Five dimensions, from personal data privacy to system security | Section 2.2 |
| Advice to users | "Generative AI serves as our tool and assistant, not a replacement for us." | Service Users section |
Source: Digital Policy Office, Hong Kong Generative Artificial Intelligence Technical and Application Guideline, version 1.1 (December 2025), and the government press release of 15 April 2025. Read on 23 November 2026. The press release says the guideline was researched by the Hong Kong Generative AI Research and Development Center (HKGAI), which was “Established in 2023 with funding from the AIR@InnoHK”. We have no connection with the DPO or HKGAI.
The key word in the guideline is "predicts". A chatbot answering a question is not fetching a stored answer from a shelf. It is producing the next small piece of text, then the next, each one chosen from a spread of possibilities it learned from a vast amount of writing.
Images work on a related idea. A diffusion model, one of the families the guideline lists, starts from noise and removes it step by step towards a picture that fits the prompt. Different machinery, same principle: plausible output drawn from learned patterns.
If you believe a chatbot looks things up, its mistakes seem baffling. If you know it generates likely text, its mistakes become predictable: it will produce something that sounds right whenever sounding right and being right come apart.
That single shift is the first goal of our course, for a 13 year old and a 50 year old alike. The lesson below makes it concrete in about thirty lines of Python. For a wider overview of the subject, see our global generative AI course page.
A real lesson
It gives every candidate word a score, converts the scores into probabilities with a function called softmax, and draws one. A setting called temperature decides how adventurous the draw is. This is a lesson we teach in the first weeks, to teenagers and adults alike, with a five-word vocabulary we made up.
# How a text generator picks its next word: scores, softmax, temperature.
# The candidate words and their scores are invented by us for this lesson.
import math, random
prompt = "After school we took the MTR to"
scores = {"Central": 3.1, "Mong Kok": 2.8, "Sha Tin": 2.2, "the beach": 1.0, "the moon": -1.5}
print("prompt:", prompt)
print("greedy choice:", max(scores, key=scores.get))
def softmax(scores, temperature):
scaled = {w: s / temperature for w, s in scores.items()}
top = max(scaled.values())
exps = {w: math.exp(v - top) for w, v in scaled.items()}
total = sum(exps.values())
return {w: e / total for w, e in exps.items()}
for t in (0.2, 1.0, 2.0):
probs = softmax(scores, t)
line = " ".join(f"{w} {p:.1%}" for w, p in probs.items())
print(f"temperature {t}: {line}")
random.seed(852)
for t in (0.2, 2.0):
probs = softmax(scores, t)
picks = random.choices(list(probs), weights=list(probs.values()), k=1000)
moon = picks.count("the moon")
print(f"1,000 samples at temperature {t}: 'the moon' chosen {moon} times")The words and scores are ours, invented for teaching, not taken from any real model. The seed 852 fixes the random draws, so anyone running this file in Python 3 gets the output below exactly.
prompt: After school we took the MTR to greedy choice: Central temperature 0.2: Central 81.0% Mong Kok 18.1% Sha Tin 0.9% the beach 0.0% the moon 0.0% temperature 1.0: Central 43.9% Mong Kok 32.5% Sha Tin 17.8% the beach 5.4% the moon 0.4% temperature 2.0: Central 33.9% Mong Kok 29.2% Sha Tin 21.6% the beach 11.9% the moon 3.4% 1,000 samples at temperature 0.2: 'the moon' chosen 0 times 1,000 samples at temperature 2.0: 'the moon' chosen 31 times
At temperature 0.2 the model almost always says Central. At 2.0 the chances flatten: the beach rises to about one in eight, and the moon, which no sensible sentence wants, came up 31 times in 1,000 draws.
The scores never changed. Only the temperature did, and with it the whole character of the output. This is why the same question can get a careful answer one day and an odd one the next: the model is drawing, not reciting.
It is also the mechanism behind the guideline's warning that "slight variations in prompts or queries can produce substantially different outputs". A small change to the prompt shifts the scores, the draw does the rest, and the final paragraph can look very different.
Notice that "the moon" was never impossible, only unlikely. A real model has no rule that forbids a false continuation; it has scores. When the learned scores favour a confident-sounding but wrong phrase, the model writes it with the same fluency as a true one.
Low temperature does not make a model truthful either. It only makes it consistent. If the top-scoring answer is wrong, a cold model will give the wrong answer every time, very politely.
Learners who enjoy this go on to see where the scores themselves come from, in our page on machine learning from scratch.
Known weak spots
The DPO guideline lists several technical limitations. Each one becomes a habit we practise in class, so that the learner, not the tool, has the last word.
| Limit, as the guideline names it | What it looks like | The check we practise |
|---|---|---|
| Model hallucination | A citation, date or quote that does not exist | Open the source; if there is none, the claim is not used |
| Model bias | Answers that lean one way for some groups or topics | Ask the same question with names or places swapped |
| Weak mathematical logic | A wrong count or a slip in arithmetic | Recount by hand or with a few lines of code |
| Sensitivity to input variations | Two near-identical prompts, two different answers | Run the prompt three times and compare |
| Data integrity | Output shaped by poisoned or drifting data | Prefer sources whose origin you can trace |
Source: DPO generative AI guideline, version 1.1 (December 2025), section on technical limitations and service risks. The guideline defines hallucination as information that “does not align with the actual circumstances of the real world or contradicts the intentions of the Service Users”. The third column is our teaching practice, not the guideline’s wording.
Learners are always surprised that the guideline singles out counting. It says generative AI "tends to perform less well on problems that require the application of mathematical logic". The sampling lesson explains why: a model produces likely tokens, and a number is just another token to it.
In class we test it ourselves. A learner asks a chatbot to count letters in a long word or items in a pasted list, then counts with one line of Python. The disagreement, when it comes, is worth more than any warning.
The EDB's own AI Literacy Learning Framework for schools, published in 2026, also lists bias and hallucination among the limits pupils should understand. Adults deserve the same honesty: the tool is impressive, and it can be wrong while sounding certain.
We teach a simple discipline: decide in advance what would prove the answer wrong, then look for it. Our page on thinking with AI instead of copying it goes further for students.
Using it responsibly
The guideline organises governance into five dimensions. Most of its detail is for developers and providers, but each dimension turns into a plain habit for an ordinary user.
| Dimension (DPO guideline) | The habit we teach | An example from class |
|---|---|---|
| Personal Data Privacy | Strip names, ID numbers and addresses before pasting anything | Summarise a sample customer email with every personal detail replaced |
| Intellectual Property | Know what you may reuse and say what was generated | Label an AI-made image in a slide deck |
| Crime Prevention | Recognise deepfakes and scam scripts | Spot what gives away a generated voice message |
| Reliability and Trustworthiness | Verify before you rely | Trace every figure in an AI summary back to its page |
| System Security | Strong, unique passwords and two-step sign-in on AI accounts | Review the chat-history and data-sharing settings together |
Source: DPO guideline, section 2.2, “Five Dimensions of Governance”. The guideline also advises that “Personal data should be anonymised or cleansed before being inputted into generative AI services” and that users “should proactively verify the authenticity of the content”. This is general information, not legal advice.
The guideline expects organisations to set policies on permitted tools, permitted uses and what information may be entered. If your employer has such a policy, it comes first; our course teaches you to work well inside it rather than around it.
Adults who want to automate parts of their job usually move on to retrieval over their own documents and then to agents. Our AI agents course for Hong Kong picks up from there.
Schools and the HKEAA set their own rules on AI in assessed work, and those rules win. In our classes a teenager uses generative tools to understand and practise, never to produce work that will be marked as theirs.
Parents weighing this question can read our guide for AI for Hong Kong teenagers, which covers what secondary schools teach about AI from S1 to S6.
Ages and tools
Two questions decide it: does the maker offer the tool in Hong Kong at all, and what age do its terms require? The two best-known chatbots fail the first test, which shapes how we teach.
| Tool | Age wording in the maker's terms | Hong Kong, and our classes |
|---|---|---|
| ChatGPT (OpenAI) | At least 13; under 18 needs a parent's or guardian's permission | Hong Kong is not on OpenAI's list of supported countries and territories; not used in our classes |
| Claude (Anthropic) | 18, or the local consent age if higher | Hong Kong is not on Anthropic's supported regions list; not used in our classes |
| Gemini (Google) | 13, or the applicable age in the country | Used only if offered in Hong Kong when we check, or provided by a school or employer |
| Canva AI | 13, or younger only through Canva Education under teacher supervision | Same check first; from 13 with a parent's agreement |
| Midjourney | 13 and the local minimum age of digital consent | Same check first; adults by default |
Sources: age wording from each maker’s terms, quoted in our AI tools age guide (audit of 15 July 2026); availability from OpenAI’s help page on supported countries and territories and Anthropic’s Supported Regions Policy (effective 12 November 2026), read on 23 November 2026, neither of which lists Hong Kong. We check a maker’s own availability list before any lesson uses its tool, and we never suggest ways around a location restriction.
The sampling lesson above, and much of what follows it, runs in plain Python with no chatbot at all. That is deliberate: a learner understands generation best by building a tiny generator, not by typing into a large one.
For a 13 or 14 year old we often keep it that way for the first month, and bring in a tool only once we have confirmed it is offered in Hong Kong and a parent has agreed.
Adult learners use tools offered in Hong Kong or provided by their employer, and open models that run on their own computer. They also learn to call a model from code, which turns a chat window into something they can test and repeat. The thinking carries over to any tool they meet later.
For a comparison of online, subsidised and free routes for adults, see our page on online AI courses in Hong Kong.
Course path
Our usual sequence, adjusted to the learner after the free first class. Teenagers stop at the stages that fit their age terms; adults go all the way.
| Stage | What the learner does | Who |
|---|---|---|
| 1. How generation works | Builds the sampler above, then a small word-pair generator from their own text | Everyone |
| 2. Prompting with evidence | Writes prompts that ask for sources, formats and limits, then checks the answers | Everyone, within age terms |
| 3. Images and sound | Compares how image tools respond to prompt changes; labels generated media | From 13 with consent |
| 4. Calling a model from code | Sends prompts from Python and saves every answer for review | Older teens and adults |
| 5. Retrieval over documents | Builds a tool that answers only from supplied notes and says when it cannot | Adults and strong older teens |
| 6. A small agent | Gives a model one or two safe tools, a step limit and tests | Adults |
| 7. Project and review | Presents a finished tool or study and defends its weaknesses in English | Everyone |
This sequence is our own teaching plan, not an official syllabus. Stages 4 to 6 need some Python; learners without it start with Python for Teens or the adult Python masterclass.
Explain in plain English why a model gave a particular answer and how likely it was to give another. Spot the five weak spots in the table above in real output. Write prompts that make checking easy.
Adults finishing stage 6 can build a small tool for their own work, test it against cases they wrote, and decide honestly whether it saves time.
No course can make a model stop hallucinating; the guideline itself says that has not been possible. We teach you to catch it. We also make no promise of a job, a pay rise or a qualification: the certificate is our own record of completion.
Learners curious about vibe coding, where AI writes much of the code, can read our vibe coding course in Hong Kong page.
English and the clock
Because the documentation, research and most prompts that work well are written in English, and because a private lesson goes exactly as fast as the learner.
Model cards, vendor terms, release notes and research papers appear in English first. A learner who can read them directly, and write a precise English prompt, has an advantage over one working through translations.
Our mentors teach in clear, steady English and write new terms in the chat, so learners from local schools and international schools are equally comfortable.
Every Hong Kong learner studies one to one. A professional can bring a real task from work (with personal details removed) and spend the whole lesson on it. A teenager can ask the question they would never ask in a room of classmates.
Lessons move around exam weeks, travel and work deadlines. There is no group to wait for.
| Hong Kong time | India time | Suits |
|---|---|---|
| 6:00 pm, weekday | 3:30 pm | Students after school, adults after work |
| 10:00 pm, weekday | 7:30 pm | A late slot after dinner |
| 10:00 am, Saturday | 7:30 am | A weekend morning |
Hong Kong is on UTC+8 and India on UTC+5:30 all year; neither changes its clocks, so the gap stays at two and a half hours. The hours above are our own examples, not a timetable.
Progress
Our own stages, used for placement and for the short written notes after each month. No government body or exam board sets or recognises them.
| Stage | The learner can | Evidence |
|---|---|---|
| 1. Explain | Say why a model predicts rather than looks up | A two-minute explanation in their own words |
| 2. Sample | Change temperature and predict the effect | The sampling lesson, rerun and annotated |
| 3. Doubt | Find a hallucination or a miscount in real output | A short log of claims checked against sources |
| 4. Protect | Remove personal data before using any tool | A before-and-after prompt |
| 5. Build | Write code that calls a model and records answers | A script with saved results (adults and older teens) |
| 6. Defend | Present a project and its limits in English | A recorded walk-through with questions |
The model always answers. Whether the answer is right is your job.
A cold temperature gives consistency, not truth.
Before any AI account is used, you are asked, and the answer is recorded.
Monthly notes show what your teenager built and what they checked.
More courses
Each runs live in English, and every Hong Kong learner takes it one to one.
GEA / BASE / 01
The language every later stage of the path relies on.
Open the syllabusGEA / BASE / 02
Where model scores come from, trained on real data.
Open the syllabusGEA / BASE / 03
Design judgement first, image generation second.
Open the syllabusGEA / BUILD / 01
Agents with tools, limits and proper tests.
Open the syllabusGEA / BUILD / 02
From abstract to method, for curious adults.
Open the syllabusGEA / BUILD / 03
Full-stack apps with AI help, reviewed line by line.
Open the syllabusGEA / DEEP / 01
Neural networks written out by hand before any library.
Open the syllabusGEA / DEEP / 02
Classical models through to deep learning and GenAI.
Open the syllabusGEA / DEEP / 03
Cleaning, analysis and models on messy real data.
Open the syllabusHow classes run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. You join from home or work in Hong Kong; your mentor teaches from India, two and a half hours behind.
Early evening
Six in Hong Kong is half past three for the mentor.
After dinner
Ten at night in Hong Kong, half past seven in India.
Weekend
A Saturday morning or a Sunday afternoon, as you like.
Before each run, the learner predicts what the model will produce.
Every lesson ends with at least one fact traced to its source.
Adults may bring work tasks, with personal details taken out.
Under-18s use a vendor tool only after a parent agrees.
Prompts and answers are kept so progress can be seen.
One mentor follows the learner from the first class on.
Student work
Built in our longer courses; more are collected in our 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
You pay one month at a time, for the classes in that month, and never in advance for a term. Prices appear in Hong Kong dollars; any card or gateway charge is listed separately 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
What students and parents have written on Google, word for word.
★★★★★
"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
English. Every lesson is live over video with a mentor based in India who speaks clearly and types new terms into the chat. We do not teach in Cantonese or Mandarin.
One to one only for Hong Kong learners: one learner, one mentor, every lesson.
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 all year, so a 10 pm lesson for you is 7:30 pm for the mentor.
No, not to start. The first stages need no code beyond the short lesson on this page, which the mentor walks through with you. Building with models from stage 4 needs some Python, which we can teach first.
Yes, through the teen route. Much of it runs in plain Python with no chatbot account. A tool is used only if its maker offers it in Hong Kong (or the school provides it), the terms allow the age and, under 18, a parent agrees. ChatGPT and Claude are not offered in Hong Kong by their makers, so we do not use them.
No course can promise that. The Digital Policy Office guideline itself says hallucination has not been possible to eliminate completely. We teach you to find and correct mistakes before they matter.
No. We are not registered with the Continuing Education Fund and have no link with the Digital Policy Office, the EDB or any university. You receive our own certificate of completion.
Yes, if your employer allows it and you remove personal data first, as the DPO guideline advises. If in doubt, we use invented documents that look like yours.
Monthly, shown in Hong Kong dollars, with no lump sum or prepayment. The gateway charge is displayed before you pay, and the first class is free.
It depends on your starting point and goal. Many adults reach a working project within a few months of weekly lessons; teenagers move at their own pace. The mentor gives an honest estimate after the free class.
Related
Pages that help you compare before you choose.
Every course we offer Hong Kong learners.
Live, subsidised and free routes compared.
What to look for, with evidence.
The next step after generative AI.
Prompts that are easy to check.
Vendor age rules, quoted.
Part of the guide: Every Hong Kong page
More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · 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 · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
In the free class you run the sampling lesson, change the temperature yourself and see a model choose words. Then the mentor asks what you want generative AI for and suggests a path that fits your age, your Python and your goal.
Prefer to look around first? See how we teach or browse the full course list.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Live online, one to one, in English, with mentors in India. WhatsApp is the quickest way to reach us from Hong Kong.
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