This is a simple Python console-based To-Do List application that allows
you to add, view, and remove tasks. All tasks are stored in a text file
(tasks.txt) so that they persist even after closing the program.
- Add new tasks
- View existing tasks
- Remove tasks by selecting task number
- Auto-save tasks to
tasks.txt - Loads tasks automatically on startup
The program loads all tasks from a file named tasks.txt.
If the file doesn't exist, it creates a new one when tasks are saved.
Displays all saved tasks with numbering for easy management.
- User enters a task description.
- Task is added to the list and saved to the file.
- Shows all tasks.
- User selects the task number to remove.
- The task is deleted and changes are saved.
The program exits safely after saving all tasks.
- Make sure you have Python installed.
- Save the script as
todo.py. - Run the program in terminal:
<!-- -->
python todo.py
- The menu will appear, and you can start managing your tasks!
todo.py
tasks.txt (automatically created after first task is added)
- Python 3.x
This project is free to use for learning and personal projects.