0Pricing
Coding for Kids · Lesson

A List of Tasks

Store tasks in a list.

A List of Tasks is a free Coding for Kids lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Let's Get Organized! 📝

Hi friend! 👋 Do you ever forget to do your chores or homework? 😅 A To-Do List helps you remember!

Today we build one with Python using a special box called a list! 📦

print("Let's build a To-Do List! 📝")

What is a List? 📦

A list is like a backpack that holds many things in order! 🎒

We write it with square brackets [ ] and put items inside, separated by commas. ✨

tasks = ["Do homework", "Feed the cat", "Clean room"]
print(tasks)

An Empty List 🫙

Sometimes we start with NO tasks yet. That's an empty list! 🫙

We can add things to it later, one by one!

tasks = []
print("My list is empty:", tasks)

Counting Tasks 🔢

How many tasks are in our list? Use len() to count them! 🧮

tasks = ["Read a book", "Brush teeth", "Walk the dog"]
print("You have", len(tasks), "tasks! 📋")

Picking One Task 👆

Each item has a position called an index. 🔢

Surprise: counting starts at 0! So the first task is at index 0! 🥇

tasks = ["Wash hands", "Eat lunch", "Play"]
print("First task:", tasks[0])
print("Second task:", tasks[1])

The Last Task 🏁

Want the LAST item? Use -1! It counts from the end. 🔚

This is a handy Python trick! ✨

tasks = ["Math", "Science", "Art"]
print("Last task:", tasks[-1])

Lists Can Hold Anything 🌈

A list can hold words, numbers, even emojis! 🎈

For a to-do list, we usually use words (text) for each task. 📝

fun_list = ["🍎", "Ride bike", 7, "Sing"]
print(fun_list)

Changing a Task ✏️

Made a mistake? We can change a task by its index! ✏️

Just give it a new value. Easy fix! 🔧

tasks = ["Do homwork", "Sleep"]
tasks[0] = "Do homework"
print(tasks)

Is It in the List? 🔍

We can ask Python if something is in our list using in! 🕵️

It answers True or False!

tasks = ["Clean room", "Study"]
print("Study" in tasks)
print("Play games" in tasks)

A To-Do List is Special 🌟

A to-do list is just a list of task words! 📝

We will learn to ADD, REMOVE, and SHOW tasks in the next lessons. Get ready! 🚀

todo = ["Make breakfast", "Pack bag"]
print("Today I must:", todo)

List Star! ⭐

You learned all about lists! 🎉

  • Lists use square brackets [ ] 📦
  • Count with len() 🔢
  • First item is index 0! 🥇
  • -1 is the last item 🔚

Next: adding new tasks! ➕

print("I am a list star! ⭐")

Quick Check ✅

Let's check what you learned about lists! 🧠

Recap Time! 🎒

Great work, list explorer! 🌟

  • A list holds many items in order 📦
  • Square brackets [ ] make a list
  • len() counts items 🔢
  • Index starts at 0, last is -1 🏁
  • in checks if something is there 🔍

Next: adding tasks to our list! ➕

print("A List of Tasks: complete! 🚀")

Frequently asked questions

Is the “A List of Tasks” lesson free?

Yes — the full text of “A List of Tasks” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.

What will I learn in “A List of Tasks”?

Store tasks in a list. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “A List of Tasks” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. A List of Tasks
  2. Adding Tasks
  3. Removing Tasks
  4. Showing the List
← Back to Coding for Kids