Skip to main content
← CoursesPython FoundationsМодуль 9 · Бонус: міні-проєктиMINI: Tic-Tac-Toe — detect a winnermission166 / 170
💬 Discuss🧪 Playground+200 XP
Task
Implement `check(board)` for a 9-cell board (list of strings, "" for empty). Run it on these boards and print the result for each: ["X","X","X","","O","","O","",""] # X wins top row ["X","O","X","O","X","O","O","X","O"] # draw, no winner ["X","O","","X","O","","X","",""] # X wins left column Expected: X draw X

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

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