The Definitive HKDSE Paper 1 Python Syllabus
After analysing every HKDSE ICT Paper 1 from 2012 to 2025, we've compiled the complete list of Python topics that have actually been tested. Use this as your master checklist โ if you've mastered everything here, you're ready for any question.
Core Syntax (Tested in 100% of Papers)
print()with sep and end parametersinput()and type casting (int(),float(),str())- Variable assignment and multiple assignment
- Arithmetic operators:
+,-,*,/,//,%,** - Comparison operators:
==,!=,<,>,<=,>= - Logical operators:
and,or,not
Control Flow (95%+ of Papers)
if,elif,elsestatements (including nested)forloops withrange()โ 1-arg, 2-arg, 3-arg formswhileloops with condition-based exitbreakandcontinue- Nested loops (common in 2D data problems)
Data Structures
Strings (85% of papers)
- Indexing and slicing:
s[0],s[1:4],s[::-1] - Methods:
.upper(),.lower(),.strip(),.split(),.replace(),.find(),.count() - Concatenation and
.join() - f-string formatting:
f"{var:.2f}"
Lists (88% of papers)
- Creation and indexing
- Methods:
.append(),.pop(),.insert(),.remove(),.sort(),.reverse() - Functions:
len(),sum(),max(),min() - 2D lists (lists of lists)
- List comprehension (occasional)
Dictionaries (60% of papers, increasing)
- Creation, access, assignment
- Methods:
.keys(),.values(),.items(),.get() - Iterating with
for key in dict:
Functions (90% of Papers)
- Defining with
def - Parameters and default arguments
returnstatements (including multiple returns)- Local vs global scope
- Functions calling other functions
File I/O (70% of Papers)
- Reading:
open(),.read(),.readline(),.readlines() - Writing:
.write(),.writelines() withstatement (context manager)- CSV-style parsing with
.split(',')
Object-Oriented Programming (65% of Papers 1B)
- Class definition with
class __init__constructor- Instance methods and
self - Attribute access
- Simple inheritance (rare but has appeared)
Standard Library Modules
mathโsqrt,ceil,floor,pirandomโrandint,random,choice,shuffledatetimeโ basic date handling (rare)
โ ๏ธ Topics NOT tested in Paper 1: Regular expressions, decorators, generators, lambda functions, external libraries (NumPy, Pandas). Don't waste time on these for HKDSE.
Frequency Ranking (High to Low)
- Variables, I/O, conditions, for loops (every single paper)
- Functions and lists (almost every paper)
- Strings and string methods (85%)
- File I/O (70%)
- OOP (65%, Paper 1B only)
- Dictionaries (60%, trending up)
- 2D lists (50%, when exam has matrix problems)
- Random/math modules (30%)
Practise Every HKDSE Topic with PyForm
PyForm's Special Task mode generates unlimited HKDSE-style practice questions covering every topic above.
Start Practising Free โ