LearnPath

python · beginner · ~4h

CLI task list

Build a small tool you would actually use. Support add, list, and complete. Persist to disk. Refuse to crash on a missing file.

Requirements

Skills: Objects & classes · Files & text · Errors & debugging

Starter

todo.py

python editor · loading…

python · sandboxed in your browser

Output

Run to see output.

Hints
  • Give each task an incremental id.
  • Write tests for load() when the file is missing.