Python Practice for Secondary School (O-Level Computing 7155)
Singapore's O-Level Computing syllabus, 7155, is examined with Python, and the lab-based practical paper is where a lot of marks slip away. In our experience it is rarely because the logic is too hard. Far more often, students have simply typed too little Python before the exam, so they are slow, they make small mistakes under pressure, and they run out of time.
This page explains what the practical paper involves, the mistakes that cost the most marks, and a practice routine you can run at home without installing anything.
What the practical paper looks like
The linked SEAB syllabus describes Paper 2 as a lab-based exam lasting two and a half hours and worth 40 percent of the subject. It lists one spreadsheet question and four to five programming questions, using spreadsheet software, Python and JupyterLab (SEAB 2025 syllabus). Check the syllabus for your examination year before relying on those timings or question counts. Its Python Quick Reference Guide is still useful for identifying the expected language features.
In practice, the programming questions draw on a familiar set of skills. Students need to take input, convert it to the right type with int() or float(), and print clear output. They need to make decisions with if, elif and else, and repeat things with for loops over ranges and lists and with while loops. They work with lists and often dictionaries, write functions with parameters and return values, and handle strings by slicing, splitting and joining them. Many questions also ask them to validate input, which means rejecting something invalid and asking again until the answer is acceptable. None of this needs extra libraries, so any environment that runs Python 3 is enough to practise in, including a browser tab.
Because the exam itself uses JupyterLab, it is worth getting comfortable with notebooks before the day, so the environment is not a surprise.
The mistakes that cost the most marks
The most expensive mistake is not running the code with real input. A student writes a loop, never actually tries it, and hands in a program that runs forever or crashes on the first line. In a practical exam, running your own program with a few sensible test values is the single best use of five minutes.
The second is forgetting that input() always gives you text. If a student compares what was typed with a number without converting it first, the program can quietly take the wrong branch, and nothing on the screen looks obviously wrong.
The third is weak validation. When a question asks for the program to keep prompting until the input is valid, a single if that checks once and moves on loses those marks. What the question wants is a loop that repeats until the input is acceptable.
A practice routine that works
Three sessions a week of about twenty minutes is enough if they are used well. Pick one topic per session, such as counting things with a dictionary or validating a number. Write the smallest program that shows it, ten lines rather than fifty. Then break it on purpose. Remove the type conversion, flip a condition, delete a colon, and read each error message carefully. Finally, close the file and write the program again from a blank page without looking.
That last step is the one most students skip, and it is the one that matters most. Reading a solution feels like learning, but writing it from memory is what actually prepares you for an exam. Psychologists call this retrieval practice. In a well-known review of study techniques, John Dunlosky and colleagues rated practice testing as one of the two most effective methods they examined (Psychological Science in the Public Interest, 2013).
How much practice is enough?
A realistic benchmark is being able to write a program of thirty to forty lines in one sitting, without help, that reads some input, checks it is valid, stores the results in a list or dictionary, and prints a summary at the end. Students who have written dozens of small programs on their way to that point usually walk into the exam feeling comfortable. Students who have only read their notes usually do not.
Frequently asked questions
Is O-Level Computing hard?
The concepts are manageable. The difficulty is exam technique and typing fluency, which come from volume of practice rather than from reading.
Do I need to install Python to practise?
No. The exam uses standard Python with no external libraries, so any environment running Python 3 is sufficient, including a browser.
How much Python is enough for O-Level Computing?
Enough to write a 30–40 line program that reads input, validates it, stores results in a list or dictionary, and prints a summary without help.
Practising the programming paper
If you want a structured drill rather than a blank editor, the first three chapters of Code Monsters Academy practise core Python through short browser exercises. It may be convenient on a school laptop or tablet, but school filters and browser policies can still affect access.
Related: fixing IndentationError, lists for beginners, for vs while