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 rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
← CoursesPython FoundationsModule 8 · Modern Python and capstoneCAPSTONE: CLI todo-appmission169 / 174
+200 XP
Task
📝 **Question:** Run the prepared todo-app over six commands so the test exercises three boundary states:\n - \`list\` on an empty store (boundary 1)\n - two \`add\`s and one \`done\` (canonical mixed state)\n - a final \`done\` so every todo is complete (boundary 2)\n\nThe list output should be deterministic JSON (sort_keys=True).\nExpected:\n[]\nadded 1\nadded 2\ndone 1\n[{"done": true, "id": 1, "text": "buy milk"}, {"done": false, "id": 2, "text": "ship it"}]\ndone 2\n[{"done": true, "id": 1, "text": "buy milk"}, {"done": true, "id": 2, "text": "ship it"}] 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
✏️ 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…