Daily Python
Day 7Python~40 min
Lists
Store, add, remove, and loop over items
Track progress0/15 days
What you'll learn
listappendremoveenumeratewhile
- Use list methods like append and remove
- Build a menu-driven shopping list app
Lesson & examples
Read the code, then the explanation — try changing values before the project.
List basics
shopping_list = ["Milk", "Eggs", "Bread"]
shopping_list.append("Butter")
for index, item in enumerate(shopping_list):
print(f"{index + 1}. {item}")