Adding Tasks
Append new items.
Adding Tasks is a free Coding for Kids lesson on CoddyKit — lesson 2 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.
Add More Tasks! ➕
Hi again! 👋 Our to-do list needs to GROW as we think of new things to do. 🌱
Today we learn how to add tasks to a list! Let's go! 🚀
print("Time to add tasks! ➕")Meet append() 📌
The magic word to add to a list is append()! 📌
It puts a new item at the end of the list. ✨
tasks = ["Eat breakfast"]
tasks.append("Go to school")
print(tasks)Add Several Tasks 📋
We can append() as many times as we want! 🔁
Each one goes to the end, in order. 🎯
tasks = []
tasks.append("Wake up")
tasks.append("Brush teeth")
tasks.append("Eat")
print(tasks)Watch It Grow 🌱
Let's count the tasks before and after adding one! 🔢
tasks = ["Read"]
print("Before:", len(tasks))
tasks.append("Draw")
print("After:", len(tasks))Add What the User Types ⌨️
Even cooler: let the USER decide the task with input()! 🤩
Whatever they type gets added to the list! 📝
tasks = []
new_task = input("What do you need to do? ")
tasks.append(new_task)
print("Added! Your list:", tasks)Insert at a Spot 🎯
Want to add a task at a SPECIFIC spot, not the end? Use insert()! 🎯
Give it the index and the task!
tasks = ["Homework", "Play"]
tasks.insert(0, "Eat snack")
print(tasks)Add Many at Once 📦
To add a whole bunch of tasks together, use extend()! 📦
It pours a second list into the first one! 🌊
tasks = ["Wake up"]
tasks.extend(["Wash", "Dress", "Eat"])
print(tasks)Don't Add Duplicates 🚫
Sometimes we don't want the SAME task twice! 🙅
We can check with in before adding. Smart! 🧠
tasks = ["Study"]
new = "Study"
if new not in tasks:
tasks.append(new)
print(tasks)A Friendly Message 😊
Let's tell the user we added their task! A confirmation feels nice! 🎉
tasks = []
task = "Walk the dog 🐕"
tasks.append(task)
print(f"Added '{task}' to your list! ✅")Adding in a Loop 🔁
We can use a loop to add many tasks quickly! 🔁
Here we add 3 numbered tasks automatically!
tasks = []
for i in range(1, 4):
tasks.append("Task " + str(i))
print(tasks)Adding Pro! 🏆
You can grow any list now! 🎉
append()adds to the end 📌insert()adds at a spot 🎯extend()adds many 📦
Next: removing tasks when they're done! ❌
print("I can add tasks like a pro! 🥇")Quick Check ✅
Let's see what you remember! 🧠
Recap Time! 🎒
Awesome, you can add tasks now! 🌟
append()= add to the end 📌insert(i, x)= add at position i 🎯extend()= add a whole list 📦- Use
into avoid duplicates 🚫
Next: crossing off finished tasks! ❌
print("Adding Tasks: complete! 🚀")Frequently asked questions
Is the “Adding Tasks” lesson free?
Yes — the full text of “Adding 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 “Adding Tasks”?
Append new items. 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 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Adding 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
- A List of Tasks
- Adding Tasks
- Removing Tasks
- Showing the List