A simple command-line To-Do List application written in Python. It allows users to add, view, complete, and delete tasksβall managed in a plain text file (tasks.txt).
- β Add tasks
- π View all tasks
- βοΈ Mark tasks as completed
- β Delete tasks
- πΎ Persistent storage using a text file
Tasks are stored in a tasks.txt file in the same directory. Each task is prefixed with:
[ ]for incomplete tasks[x]for completed tasks
- Python 3.x
-
Clone the repository:
git clone https://github.com/Mehul1437/todolist-python.git cd todolist-python -
Run the script:
python todolist.py
-
Choose an action:
---- To-Do List --- 1. Add Task 2. View Tasks 3. Mark Task as Completed 4. Delete Task 5. Exit
---- To-Do List ---
1. Add Task
2. View Tasks
3. Mark Task as Completed
4. Delete Task
5. Exit
Enter your choice: 1
Enter the task: Buy groceries
Task added successfully.Contributions are welcome! Please fork the repository and open a pull request.
This project is licensed under the MIT License.
Made with β€οΈ using Python