โ† Back to Python Course
๐Ÿ“ฆ Lists & Dataยท30 minยทIntermediate๐Ÿ† Project
โœ…

Mini-Project: To-Do List App

Build a simple task manager!

Combine lists, loops, and input to build a working to-do list app that lets you add, view, and complete tasks!

๐Ÿ“–

What we are learning

Time to build something useful! A to-do list app lets you add tasks, view them, mark them as done, and remove them. You will use lists to store tasks, loops to display them, and input to interact with the user.

๐Ÿ’ก Think of it like this:

Think of this app like a sticky note board. You write tasks on sticky notes (add to list), look at the board to see what needs doing (display list), and remove notes when done (remove from list).

๐ŸŒŸ

Why it matters

This project brings together lists, loops, and user interaction. It is a mini version of real apps like Google Tasks or Apple Reminders โ€” built entirely by you!

Where you see this in real life:

  • โœ“Task management apps like Todoist and Google Tasks
  • โœ“Shopping list apps
  • โœ“Project management tools like Trello
๐ŸŽฏ

By the end, you can:

  • 1.Use a list to store tasks
  • 2.Use a while loop for the app menu
  • 3.Add, display, and remove tasks with user input
๐Ÿ”ค

New words

listappendremovewhile loopinput
๐Ÿ
Write down 3 things you need to do today. That is your starting to-do list!
๐Ÿค“

Fun Fact!

The first to-do list app was just a pen and paper! Digital to-do apps have been around since the 1980s.

โœ… Build a To-Do List App!

Time to build something useful! A to-do list app lets you add tasks, view them, and remove them when done. You will use lists, loops, and a while loop for the menu!

๐Ÿ—๏ธ Step 1: The Menu

First, we create an empty list and a menu that keeps running until the user chooses to quit.

๐ŸThe complete To-Do List App!
main.py
โ— Output
Click โ–ถ Run to see the output!

๐Ÿ” How It Works

  • 1๏ธโƒฃ tasks = [] โ€” Start with an empty list
  • 2๏ธโƒฃ while True โ€” Keep the app running forever
  • 3๏ธโƒฃ break โ€” Stops the loop when user picks "Quit"
  • 4๏ธโƒฃ append() โ€” Adds a new task to the list
  • 5๏ธโƒฃ enumerate() โ€” Gives us both the index and the item
  • 6๏ธโƒฃ pop() โ€” Removes a task by its position

๐Ÿš€ Challenge: Add Features!

Try adding these features to your to-do app:

  • ๐ŸŒŸ Show the total number of tasks
  • ๐ŸŒŸ Add a "mark as done" option
  • ๐ŸŒŸ Sort tasks alphabetically
  • ๐ŸŒŸ Save tasks with priority levels (high/medium/low)
๐ŸYour turn โ€” customize it!
main.py
โ— Output
Click โ–ถ Run to see the output!
๐Ÿ
Incredible! You built a real app! ๐ŸŽ‰ You used lists, while loops, for loops, input, and conditionals all together!
๐Ÿง 

Quick Quiz!

+15 XP

What does the break statement do in a while loop?

๐Ÿ
Finished the lesson? Click the button to mark it complete and earn XP!