Skip to main content
πŸ”’ Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial β†’
⚑
← Coursesβ€ΊInterview PrepModule 5 Β· System Design & Behavioral Β· Recapβ€ΊπŸŽ― Review: Interview Prep module 5 recapscenario84 / 104
+80 XP
Task
Build `star_format(situation, task, action, result)` returning a 4-part bulleted answer ready to recite: - Format: `"S: <situation>\nT: <task>\nA: <action>\nR: <result>"` (newline-separated, in S/T/A/R order). - Strip leading/trailing whitespace from each field. - Reject any field that's empty after stripping β†’ return `"INCOMPLETE"` (interviewers can smell a missing R). - All four present β†’ return the formatted answer. The shape forces you to lead with the situation and CLOSE with a measurable result β€” the #1 fix for rambling behavioral answers.
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
πŸ“Š Result
Press Run to see result...

πŸ’¬ Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…