Mini OA: score audit
Return the top three (name, score) pairs after rejecting non-integer scores and scores outside 0–100.
What you’ll practice
This Level 2 exercise focuses on built-ins integration in the Built-ins curriculum. Solve the challenge prompt above using clear, idiomatic Python and the relevant language or standard-library tools.
Relevant Python reference: Python Standard Library — Built-ins.
Sample Test Cases
audit([('aya',91),('dev','88'),('zoe',88)])[('aya',91),('zoe',88)]Further Reading
Reference Solution
Reveal Reference Solution
def audit(rows: list[tuple[str, object]]) -> list[tuple[str, int]]: valid = filter(lambda row: isinstance(row[1], int) and not isinstance(row[1], bool) and 0 <= row[1] <= 100, rows) return sorted(valid, key=lambda row: (-row[1], row[0]))[:3]Pro Tips & Keyboard Shortcuts
Open VS Code Color Theme Quick Pick to select from 20 dark and light themes.
Open practice settings drawer to toggle line numbers, indenting, font size & hints.
Expand sidebar menu, focus search bar, and highlight search text instantly.
Instantly highlight and focus code editor from anywhere, restoring cursor right where you left off.
Collapse sidebar and close all popups or settings drawers for clean focus view.