2026 May OPPE 1 - Set 1¶
Section 1 · Question 1
Traffic Signal Action
Conditional branching with priority override. Covers if/elif/else and early returns.
Section 1 · Question 2
Join Even Index Strings
Pick elements at even indices from a list and concatenate. Covers list[::2] and ''.join().
Section 1 · Question 3
Make Dictionary from Elements at Index
Build a single key-value dict from two lists at a given index. Covers dict literals and negative indexing.
Done ✓Section 2 · Question 1
Zero Sum Pairs
Find all unique pairs that sum to zero. Covers set, tuple(sorted()), and itertools.combinations.
Section 2 · Question 2
Count Digits in Text
Read n lines and count all numeric digit characters. Covers str.isdigit() and nested iteration.
Section 3 · Question 1
Workout Data Analytics
Filter users by workout statistics across four categories. Covers avg, min, max, and dict of lambdas.
Section 3 · Question 2
Hollow Square Ring Pattern
Print an n×n hollow square border using #. Covers row classification and no-trailing-space construction.