Python Basic To-Do List Project

Step-by-step instructions

This project will guide you to create a **basic to-do list application** using Python. Students will learn to handle lists, loops, and simple user input.

Hint: Use a list to store tasks and loops to display them!

Step 1: Initialize Task List

Instructions:

  • Create an empty list called tasks to store to-do items.
  • Example: tasks = []

Step 2: Add Tasks

Instructions:

  • Ask the user to enter a new task using input().
  • Append the task to the tasks list.
  • Repeat this step multiple times to add several tasks.

Step 3: Display Tasks

Instructions:

  • Use a loop to display all tasks in the tasks list.
  • Number each task when displaying.
  • Example Output:
  • 1. Buy groceries
    2. Complete homework
    3. Call friend
    

Step 4: Remove Task

Instructions:

  • Ask the user to enter the number of the task to remove.
  • Delete the selected task from the tasks list.
  • Display the updated task list after removal.

Step 5: Repeat Option

Instructions:

  • Allow the user to add, remove, or view tasks repeatedly until they choose to exit.
  • Example: Use a loop to continue the program until the user types "exit".

Tips for Students

Have fun building your To-Do List! ✅