2025 Jan OPPE 1 - Set 1¶
Section 1 · Question 1
Even or Divisible by 5
Check if a number satisfies either of two conditions. Covers modulo arithmetic and the or operator.
Section 1 · Question 2
Deinterleave Even and Odd Indices
Rearrange a string by placing even-index characters before odd-index ones. Covers step slicing s[::2].
Section 1 · Question 3
Make Dictionary from Elements in Index
Build a single key-value pair dict from two lists at a given index. Covers dict literals and negative indexing.
SolvedSection 2 · Question 1
Count Unique Even and Odd Numbers
Count unique even and odd numbers in a list. Covers set() deduplication and counting patterns.
Section 2 · Question 2
Vowel Count of Words
Append vowel count to each word in a sentence. Full I/O problem covering string splitting, counting and joining.
SolvedSection 3 · Question 1
Student Score Filter
Filter students by four criteria - excellent, good, all_pass, balanced. Covers all(), averages, and set comprehensions.
Section 3 · Question 2
W Pattern
Print a W-shaped pattern with |, / and \. Full I/O pattern printing problem.