Skip to content

manyworldss/To_Do_list.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simple Python To-Do List Manager

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.

Features

  • Add new tasks to your list
  • View all current tasks
  • Remove tasks by number
  • Simple command-line interface
  • Input validation and error handling

Requirements

  • Python 3.x

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/todo-list-manager.git
cd todo-list-manager
  1. Run the program:
python todo_list.py

Usage

The program presents a menu with 4 options:

  1. Add Task: Enter a new task to add to your list
  2. View Tasks: Display all current tasks with numbers
  3. Remove Task: Remove a task by entering its number
  4. Quit: Exit the program

Code Structure

  • show_menu(): Displays the main menu options
  • add_task(tasks): Adds a new task to the list
  • view_tasks(tasks): Displays all current tasks
  • remove_task(tasks): Removes a specified task
  • main(): Main program loop and menu handling

Learning Points

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

Future Improvements

Potential enhancements could include:

  • Saving tasks to a file
  • Task categories or priorities
  • Due dates for tasks
  • Task editing functionality
  • Task completion status

Contributing

This is a learning project, but suggestions and improvements are welcome! Feel free to fork and submit pull requests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages