A simple, interactive command-line To-Do List built in Python.
It lets you add, view, mark, and delete tasks — all in under 100 lines of clean, PEP 8–compliant code.
- 📋 View all your tasks with clear “Done” / “Pending” status
- ➕ Add new tasks easily
- ✅ Mark tasks as completed
- ❌ Delete tasks you no longer need
- 💡 Clean structure with helpful comments — perfect for beginners
- Written in pure Python — no extra libraries needed
- Under 100 lines of readable, well-documented code
- Demonstrates:
- Lists and dictionaries
- Input handling
- Control flow and functions
- Following PEP 8 style guidelines
- Save the code as
todo.py - Open a terminal in the same folder
- Run:
python todo.py
- Follow the on-screen menu to manage your tasks 🎯
=== TO-DO LIST MENU ===
1. View tasks
2. Add task
3. Mark task as completed
4. Delete task
5. Exit
Enter choice (1–5): 2
Enter new task: Finish Python assignment
Task 'Finish Python assignment' added.
Made with ❤️ by a Python enthusiast.
Perfect for beginners learning functions, lists, and clean coding practices.