Lesson 24 of 30
Lesson 24 ? Todo list
Title: Make a small list manager
Description: Add tasks, show tasks, and mark simple todo items with Python lists.
Why it matters for kids: Todo lists are simple apps that use real programming ideas.
1. Start with tasks
tasks = ["read", "code", "draw"]
for task in tasks:
print(task)2. Add a task
tasks = []
new_task = input("New task: ")
tasks.append(new_task)
print(tasks)3. Show numbered tasks
tasks = ["read", "code", "draw"]
for index, task in enumerate(tasks, start=1):
print(f"{index}. {task}")4. Mark done with text
tasks = ["read", "code"]
tasks[0] = "DONE: read"
print(tasks)5. Easy examples
shopping = ["milk", "bread"]
shopping.append("apples")
print(shopping)chores = ["clean desk", "feed pet"]
print("First chore:", chores[0])ideas = []
ideas.append("make a game")
ideas.append("draw a robot")
print(ideas)6. Mini challenge
Click each example to open it.
Example 1
Create a list with three tasks.
Example 2
Print every task.
Example 3
Add one task with append.
Example 4
Ask the user for a new task.
Example 5
Print numbered tasks.
Example 6
Mark the first task done.
Example 7
Create a shopping list.
Example 8
Add apples to the shopping list.
Example 9
Create an empty ideas list.
Example 10
Ask for three tasks and print them.