Mini OA: interview panels
Choose 2 interviewers and assign distinct morning/evening slots to them. Return every (panel, slot_order) plan.
What you’ll practice
This Level 4 exercise focuses on itertools integration in the Itertools curriculum. Solve the challenge prompt above using clear, idiomatic Python and the relevant language or standard-library tools.
Relevant Python reference: Python Standard Library — Itertools.
Sample Test Cases
panel_plans(['A','B','C'])6 valid plansFurther Reading
Reference Solution
Reveal Reference Solution
def panel_plans(people: list[str]) -> list[tuple]: from itertools import combinations, permutations, product panels = combinations(people, 2) slot_orders = list(permutations(('morning','evening'))) return list(product(panels, slot_orders))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.