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 4 · Object-oriented programmingFINAL: TODO listmission65 / 174
+200 XP
Task
📝 **🏆 FINAL MISSION:** TODO list 📋 **Steps:** 1. Create empty `todos = []` 2. Append `{"task": "learn Python", "done": False}` 3. Append `{"task": "build TODO app", "done": True}` 4. Count completed: `sum(1 for t in todos if t["done"])` 5. Print the count 💡 **Similar example (books):** ```python books = [] books.append({"title": "Python", "read": True}) books.append({"title": "Go", "read": False}) read_count = sum(1 for b in books if b["read"]) print(read_count) # 1 ``` 🎯 **Expected output:** `1` 🎉 Completing this mission finishes the whole 60-lesson course!
✏️ 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…