IBGU / P2 / 01
Python for Teens
For the Python version of Paper 2.
Open the syllabusHong Kong · IB Diploma Computer Science · exams from May 2027
From May 2027 the IB Computer Science exam is two papers, not three, and the papers do different jobs. Paper 1 asks what a student knows about computers, networks, data and machine learning, and how they read a case study released before the exam. Paper 2 asks them to think and program. This guide sets out both, from summaries of the new guide, and how we prepare students for them one to one, live online, in English.
Teaching live since 2020 · 10,000+ students worldwide · Hong Kong lessons are one to one, online, in English
The two papers in brief
Under the IB Computer Science guide first examined in May 2027, students sit two papers. Paper 1 covers Theme A (computer fundamentals, networks, databases, machine learning) and, in its Section B, a pre-seen case study; Paper 2 covers Theme B (computational thinking, programming, object-oriented programming, and abstract data types at HL), in a Java or a Python version. Vendor summaries give 1 hour 15 minutes per paper at SL and 2 hours at HL. Modern Age Coders prepares Hong Kong students for both, live online, one to one and in English, at hours the family chooses; the first class is free.
Exam courses
The first course covers both papers. The second sharpens Paper 2 problem solving; the third suits students on the Java version of Paper 2. Hong Kong families take all three one to one.

IBGU / 01
Theme A and Theme B in your school's order, case-study reading for Paper 1 Section B, and timed practice on questions we write in the style of the new papers.
Open the syllabus →
IBGU / 02
Tracing, designing and writing algorithms by hand, without leaning on built-in functions: the skill Paper 2 now tests directly, and the base of the HL abstract data types unit.
Open the syllabus →
IBGU / 03
For students whose school sits the Java version of Paper 2. Classes, arrays and recursion practised until reading and writing Java under time pressure is routine.
Open the syllabus →Structure
ibo.org refuses our requests, so the figures here come from AssessPrep and ManageBac, two Faria Education Group platforms used by IB schools, summarising the new guide. Treat them as summaries: the school's copy of the guide and the specimen papers are the authority.
| Paper | SL length | HL length | SL weight | HL weight |
|---|---|---|---|---|
| Paper 1: Theme A, Section A; pre-seen case study, Section B | 1 h 15 min | 2 h | 35% | 40% |
| Paper 1 marks: Section A plus Section B | 38 + 12 = 50 | 56 + 24 = 80 | case study 24% of the paper | case study 30% of the paper |
| Paper 2: Theme B, Java or Python version | 1 h 15 min | 2 h | 35% | 40% |
| Internal assessment (computational solution) | not timed | not timed | 30% | 20% |
| Exam time in total | 150 min | 240 min | 70% from papers | 80% from papers |
Lengths, weights and Paper 1 section marks: AssessPrep (Faria Education Group), “IB DP Computer Science new syllabus 2027: 10 changes to know”, 18 May 2026, read 24 November 2026. The sums, the case-study shares (12 of 50, 24 of 80) and the totals are our arithmetic. Paper 2 mark totals were not in the summaries we read, so they are not printed.
Our arithmetic: Paper 1 gives 75 minutes for 50 marks at SL and 120 minutes for 80 at HL. Both work out at 1.5 minutes a mark, which is a useful pace to train.
Section B is 12 of 50 Paper 1 marks at SL but 24 of 80 at HL. ManageBac adds that HL students explore 4 case-study challenges to SL's 2.
AssessPrep reports that from May 2027 “Paper 3 no longer exists at SL or HL”; the case study that used to fill it now sits in Paper 1.
The weights explain where revision time should go. At HL the two papers carry 80% of the grade between them; at SL they carry 70%, and the internal assessment the other 30%. The IA has its own page, our guide to the 2027 IB CS syllabus covers what changed in the course as a whole, and this page concentrates on the two exams.
Paper 1
Paper 1 is the concepts paper. AssessPrep describes Theme A as “Computer fundamentals, networks, databases, and a new focus on machine learning”, and Section B as “the case-study section, based on a pre-seen scenario released ahead of the exam”.
Section A is where a student explains how computers, networks and databases work, and what machine learning is and is not. Summaries of the new guide say databases, once optional, are now studied by everyone, and machine learning enters the course for the first time, with deeper treatment at HL.
Marks go to precise vocabulary used correctly. A student who writes that a database “stores data” scores less than one who explains what a primary key prevents. Hong Kong students who learned these topics first in Chinese, at a DSS school, often know the idea and lose the English term; we drill the terms.
The IB releases a case study before the exam. Section B asks questions on it, and ManageBac reports that SL students explore 2 “challenges” in it and HL students 4. AssessPrep notes that SL students now meet a case study their predecessors never faced.
Preparing well means reading the case study the way an analyst would: listing its systems, data, stakeholders and risks, and the technical terms it introduces, then practising answers to questions we write about it. We do not reproduce the IB's case study here; your child's school provides it.
Paper 2
Paper 2 is the thinking and programming paper. AssessPrep describes Theme B as “Computational thinking, programming, object-oriented programming, and abstract data types for HL only”, and reports “two separate versions of Paper 2 (one Java, one Python)”.
ManageBac says the new course was designed to “support both Java and Python”. AssessPrep adds that the choice is made at department level and runs through teaching, the IA and the final exam. So the language of Paper 2 is your child's school's decision, not the student's, and a tutor must teach in that language.
For Hong Kong students who sat HKDSE-style ICT or IGCSE work in Python before switching schools, a Java department means learning a new syntax under time pressure. That is a common reason families come to us in Year 12.
In the IA, AssessPrep says, calling sort, pop, len, max or min is fine, while “specific exam questions will explicitly prohibit their use”. A student who has only ever called sort() will be stuck when a question asks for the sorting itself.
The same summary notes that two SL Paper 2 questions reappear on HL Paper 2, including one that tests algorithmic thinking without asking students to write or interpret code. Reasoning about an algorithm in words is part of the paper, not only coding it.
ManageBac's summary says the abstract data types topic “is the only unit exclusive to HL students”, and that “HL candidates are recommended to have been exposed to programming”. In practice an HL student must be able to build and reason about structures such as stacks, queues, linked lists and trees by hand. The sample lesson below uses a binary search tree, written with no library help, because that is exactly the mode a no-built-ins question demands. Students new to programming can begin with our Python course in Hong Kong or Java course in Hong Kong.
A sample lesson
This lesson builds a binary search tree from scratch: no sort, no library containers. We use it with HL students on abstract data types, and with SL students as recursion practice. The code and the numbers are ours.
# Binary search tree by hand: the tree code itself calls no sort and no library structure.
class Node:
def __init__(self, key):
self.key = key
self.left = None
self.right = None
def insert(root, key):
if root is None:
return Node(key)
if key < root.key:
root.left = insert(root.left, key)
elif key > root.key:
root.right = insert(root.right, key)
return root # equal keys are ignored
def in_order(node, out):
if node is not None:
in_order(node.left, out)
out.append(node.key)
in_order(node.right, out)
return out
def height(node):
if node is None:
return 0
return 1 + max(height(node.left), height(node.right))
mixed = [50, 30, 70, 20, 40, 60, 80, 35, 65]
root = None
for k in mixed:
root = insert(root, k)
print("in-order:", in_order(root, []))
print("height, mixed order:", height(root))
chain = None
for k in sorted(mixed):
chain = insert(chain, k)
print("height, sorted order:", height(chain))Our own lesson code. Run with Python 3, it prints exactly the three lines below. The tree functions use no sort and no library structure; sorted() appears only to build the bad input for the second experiment. Java students write the same tree with a Node class and references.
in-order: [20, 30, 35, 40, 50, 60, 65, 70, 80] height, mixed order: 4 height, sorted order: 9
Same nine keys, two insertion orders: height 4 when mixed, height 9 when already sorted. That difference is the whole argument for balanced trees.
Recursion that a student can trace line by line, which Paper 2 asks for. Hand-built structures that work when built-ins are forbidden. And a written explanation of efficiency, which turns code into marks.
It also links the two papers. The idea that data order changes performance appears in Paper 1 discussions of databases and searching, so one lesson serves both.
Delete a node with two children. Count comparisons for a search in each tree. Then ask: which insertion orders of these nine keys give a height of 4? Students who reason this out are doing the algorithmic thinking the paper rewards.
Students who enjoy this can go further with one-to-one IB CS tutoring in Hong Kong or alongside competitive programming, where trees are everyday tools.
Exam mode
Either, depending on the school. AssessPrep reports that digital examinations “become available to all IB World Schools from November 2026, with a dual-running phase across the 2027, 2028, and 2029 examination sessions”.
The same summary says the core paper structure and content are the same in both modes. What changes is the experience: typing an extended answer rather than writing it, and reading code on screen without line numbers in some source texts.
A Hong Kong school may choose either mode for a given session. Ask your child's Diploma coordinator which mode applies, and practise in that mode for the last two months.
AssessPrep says the final assessment for the legacy course is November 2026, and that “Legacy past papers are also of limited value because the paper format and weightings have changed”. Old questions on surviving topics still teach, but full old papers no longer rehearse the real exam.
We write our own practice questions in the new format and never reproduce IB papers. Specimen papers for the new guide reach schools through the IB; ask the school for them.
Revision
With the papers' different jobs in mind. Here is the order we follow across the two Diploma years, adjusted to each school's calendar.
| Hong Kong time | India time | Good for |
|---|---|---|
| 5:30 pm, weekday | 3:00 pm | Paper 2 coding while the day's lesson is fresh |
| 10:00 pm, weekday | 7:30 pm | A short Paper 1 vocabulary drill |
| 9:00 am, Sunday | 6:30 am | A timed section before the week begins |
Clock facts: UTC+8 in Hong Kong all year (the Observatory lists no summer time after 1979) and UTC+5:30 in India (IANA tz). The example rows are our arithmetic, not a timetable.
Progress
Six stages of our own, used to plan lessons and to report monthly to parents. They are not IB grade boundaries.
| Stage | The student can | Shown by |
|---|---|---|
| 1. Language | Write and trace short programs in the school's language | Trace tables done without running the code |
| 2. By hand | Write searches, sorts and structures with no built-ins | Our no-built-ins drills, correct first time |
| 3. Theme A terms | Define and use every Theme A term precisely | Vocabulary checks in English |
| 4. Case study | Answer our questions on the released case study | Section B style answers at 1.5 minutes a mark |
| 5. Reasoning | Explain an algorithm's behaviour in words | Reasoning-only questions answered fully |
| 6. Full papers | Finish both papers in time, in the right mode | Timed papers and a shrinking error list |
If sort() is banned, can you still sort?
Ninety seconds a mark: count your points.
A monthly note covers topics, timed results and the error list.
Grades and predictions come from the school, not from us.
More courses
Grouped by the paper they help most. Each is live, in English and, for Hong Kong, one to one.
IBGU / P2 / 01
For the Python version of Paper 2.
Open the syllabusIBGU / P2 / 02
Contest problems with a clock running.
Open the syllabusIBGU / P2 / 03
Memory and pointers, which make trees and lists concrete.
Open the syllabusIBGU / P1 / 01
SQL for the database questions in Theme A.
Open the syllabusIBGU / P1 / 02
The new Theme A topic, hands on.
Open the syllabusIBGU / P1 / 03
Training and testing models visually.
Open the syllabusIBGU / DP / 01
Diploma maths at SL or HL.
Open the syllabusIBGU / DP / 02
Extra Java practice for US applicants.
Open the syllabusIBGU / DP / 03
Python and data beyond the syllabus.
Open the syllabusHow lessons run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Lessons connect a student at home in Hong Kong with a mentor in India, where it is always 150 minutes earlier.
Weekday after school
5:30 pm Hong Kong, 3 pm India.
Weekday night
10 pm Hong Kong, 7:30 pm India.
Sunday morning
9 am Hong Kong, 6:30 am India.
Programs are written and traced in a shared editor.
Structures are drawn before they are coded.
Java or Python, matching Paper 2.
Practice in the new format, written by us.
Paced at 1.5 minutes a mark.
One mentor through Year 12 and Year 13.
Student work
Software our students made during longer courses. Making things is the surest cure for a Paper 2 that feels abstract; see more on 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
Payment is monthly and the card shows it in Hong Kong dollars. Each payment covers the lessons of one month; there are no term fees or deposits, and a gateway charge, where one applies, is listed on screen before payment goes through.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
Parents and students on Google, in their own words.
★★★★★
"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 families
According to AssessPrep's summary of the guide first examined in May 2027, each paper lasts 1 hour 15 minutes at SL and 2 hours at HL, and each is worth 35% at SL and 40% at HL.
Paper 1 covers Theme A concepts (computer fundamentals, networks, databases, machine learning) plus a pre-seen case study in Section B. Paper 2 covers Theme B: computational thinking, programming, object-oriented programming and, at HL, abstract data types.
No. Summaries of the new guide report that Paper 3 no longer exists at SL or HL from May 2027, and the case study moved into Paper 1 Section B for both levels.
Both versions exist, according to AssessPrep, and the school department chooses one. We teach in whichever language your child's school uses.
Not always. AssessPrep reports that some exam questions will explicitly prohibit built-in functions, even though they are allowed in the IA. We practise writing those algorithms by hand.
Partly. Questions on topics that survived still teach, but the paper format and weights changed for 2027, so full old papers no longer rehearse the real exam. We write practice questions in the new format and never reproduce IB papers.
Yes. A mentor in India teaches every session over live video, entirely in English, the same language as both papers and the case study. Cantonese and Mandarin are not used in our lessons.
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. With the mentor's clock 150 minutes behind yours on every date, 6:45 pm for your child is 4:15 pm in India.
Month by month, in Hong Kong dollars, at the figure printed on the fee card. You never pay for a month that has not started, a gateway charge, if any, appears before payment, and the first class costs nothing.
A student who completes a course gets a certificate from us recording it. That is all it is: the IB, schools and government bodies have no part in it, and it says nothing about an IB result.
Related
Pages on the course, the tutor and the alternatives.
Every Hong Kong page for coding, AI and maths.
One-to-one help across the whole course.
What changed, and the IA criteria.
The same course for students outside Hong Kong.
The local exam, for comparison.
Our lesson method, step by step.
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 · Olympiads and competitions: AMC 10 preparation · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
Let us know which language your child's department chose for Paper 2. During the trial, your child traces and writes a short algorithm without built-ins and answers one Theme A question; the mentor then names the two or three things most worth practising before the next mock.
The IB Computer Science course page lists every topic we teach, and how we teach describes a typical session.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
One to one, live online, taught in English from India. Send a WhatsApp message for the quickest reply.
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