2026 May OPPE 1 - Set 3¶
Section 1 · Question 1
Tens Digit Greater Than Ones Digit
Extract and compare digits of a two-digit number. Covers // and % for digit extraction.
Section 1 · Question 2
Check for Common Integer
Check whether two sets share at least one element. Covers set intersection, bool(), and isdisjoint().
Section 1 · Question 3
Shuffle Digits
Rearrange digits of a 4-digit number in a fixed order. Covers string indexing and 1-based to 0-based index translation.
Done ✓Section 2 · Question 1
Reverse Each Word
Reverse every string in a list independently. Covers [::-1] and list comprehensions.
Section 2 · Question 2
Longest String Among Entries
Find the integer-string pair with the longest string. Covers max(key=...) and first-occurrence tie-breaking.
Section 3 · Question 1
Filter Customers by Spending Pattern
Filter customers across four spending categories. Covers avg, min, max, and dict of lambdas.
Section 3 · Question 2
Hollow X Pattern
Print an n×n hollow X using main and secondary diagonals. Covers diagonal column formulas and interior space calculation.
Done ✓