A lightweight command-line task manager that saves your tasks to a local text file. No database, no setup — just Python.
A minimal, no-frills to-do list manager built in pure Python. Tasks persist across sessions via a simple text file (todo.txt). Built as a beginner-friendly utility to practice file I/O, list manipulation, and CLI design — no external libraries needed.
- ➕ Add tasks
- 📋 View all tasks with numbered listing
- ❌ Remove tasks by number
- 💾 Auto-save — tasks persist in
todo.txtbetween runs - 🪶 Zero dependencies — uses only Python's standard library
- Python 3.6+ — uses f-strings
osmodule — checks if the file exists
Utility_Scripts/
├── todo.py # Main script
└── README.md
python >= 3.6git clone https://github.com/tanmaytiwari37/Utility_Scripts.git
cd Utility_Scripts
python todo.py--- MENU ---
View Tasks
Add Task
Remove Task
Exit
Choose an option (1-4):
--- MENU ---
1. View Tasks
2. Add Task
3. Remove Task
4. Exit
Choose an option (1-4): 2
Enter the task to add: Buy groceries
Added: 'Buy groceries'
--- MENU ---
Choose an option (1-4): 2
Enter the task to add: Call mom at 7 PM
Added: 'Call mom at 7 PM'
--- MENU ---
Choose an option (1-4): 2
Enter the task to add: Submit assignment
Added: 'Submit assignment'
--- MENU ---
Choose an option (1-4): 1
--- YOUR TASKS ---
1. Buy groceries
2. Call mom at 7 PM
3. Submit assignment
------------------
--- MENU ---
Choose an option (1-4): 3
--- YOUR TASKS ---
1. Buy groceries
2. Call mom at 7 PM
3. Submit assignment
------------------
Enter the number of the task to remove: 1
Removed: 'Buy groceries'
--- MENU ---
Choose an option (1-4): 4
Goodbye!
- File I/O — reading and writing text files in Python
- List manipulation — append, pop, enumerate
- Error handling — using
try/exceptto catch invalid input - Persistent storage — saving state between program runs without a database
- Function decomposition — splitting code into small, single-purpose functions
Tanmay Tiwari — B.Tech Aerospace Engineering, VIT Bhopal
- 🌐 GitHub: @tanmaytiwari37
- 📧 itanmaytiwari37@gmail.com
This project is licensed under the MIT License — feel free to use, modify, and learn from it.