A command-line-based To-Do List manager implemented in Python. This project is a learning exercise for basic Python programming concepts including functions, lists, user input handling, and basic error management.
- Add new tasks to your list
- View all current tasks
- Remove tasks by number
- Simple command-line interface
- Input validation and error handling
- Python 3.x
- Clone this repository:
git clone https://github.com/yourusername/todo-list-manager.git
cd todo-list-manager
- Run the program:
python todo_list.py
The program presents a menu with 4 options:
- Add Task: Enter a new task to add to your list
- View Tasks: Display all current tasks with numbers
- Remove Task: Remove a task by entering its number
- Quit: Exit the program
show_menu()
: Displays the main menu optionsadd_task(tasks)
: Adds a new task to the listview_tasks(tasks)
: Displays all current tasksremove_task(tasks)
: Removes a specified taskmain()
: Main program loop and menu handling
This project demonstrates:
- Working with lists in Python
- Function definitions and parameters
- User input handling
- Basic error handling with try/except
- Type hints for better code clarity
- Menu-driven program structure
Potential enhancements could include:
- Saving tasks to a file
- Task categories or priorities
- Due dates for tasks
- Task editing functionality
- Task completion status
This is a learning project, but suggestions and improvements are welcome! Feel free to fork and submit pull requests.