0Pricing
Coding for Kids · Lesson

Removing Tasks

Cross things off.

Removing Tasks is a free Coding for Kids lesson on CoddyKit — lesson 3 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.

Cross It Off! ❌

Hooray! 🎉 You finished a chore! Time to cross it off your to-do list! ✅

Today we learn how to REMOVE tasks from a list. Let's do it! 🚀

print("Let's cross off finished tasks! ❌")

Meet remove() 🗑️

The word remove() takes a task OUT of the list by its name! 🗑️

Just tell it which task to remove. ✨

tasks = ["Eat", "Study", "Play"]
tasks.remove("Study")
print(tasks)

Remove by Position 🔢

We can also remove by index using pop()! 🍿

Remember, index 0 is the first item!

tasks = ["Wash", "Cook", "Clean"]
tasks.pop(0)
print(tasks)

Pop the Last One 🔚

If you call pop() with NO number, it removes the LAST item! 🏁

It also hands the item back to you! 🎁

tasks = ["Read", "Draw", "Sing"]
done = tasks.pop()
print("Finished:", done)
print("Left:", tasks)

Careful! 😬

If you try to remove() something that ISN'T in the list, Python gets upset and shows an error! 😱

Always check first with in! 🕵️

tasks = ["Eat", "Sleep"]
if "Eat" in tasks:
    tasks.remove("Eat")
print(tasks)

Safe Removing 🛡️

Let's build a SAFE remover that checks before removing! 🛡️

If the task isn't there, we print a friendly note instead of crashing. 😊

tasks = ["Math", "Art"]
target = "Science"
if target in tasks:
    tasks.remove(target)
else:
    print("That task isn't here! 🤷")

Clear the Whole List 🧹

Finished EVERYTHING? Use clear() to empty the list! 🧹

A fresh start for a new day! 🌅

tasks = ["Done1", "Done2"]
tasks.clear()
print("All done! List:", tasks)

Ask Which to Remove ⌨️

Let the user type which task to cross off! 🤩

tasks = ["Walk dog", "Do laundry"]
finished = input("Which task is done? ")
if finished in tasks:
    tasks.remove(finished)
print("Now:", tasks)

Celebrate! 🎉

When a task is removed, let's celebrate with a happy message! 🥳

tasks = ["Clean room", "Homework"]
done = tasks.pop(0)
print(f"Great job finishing '{done}'! 🎉⭐")

Add and Remove Together 🔄

Real to-do lists ADD and REMOVE all day long! 🔄

Let's do both in one little program!

tasks = ["Study"]
tasks.append("Play")
tasks.remove("Study")
print(tasks)

Removing Pro! 🏆

You can cross off any task now! 🎉

  • remove() by name 🗑️
  • pop() by index (or last) 🍿
  • clear() empties everything 🧹
  • Check with in to stay safe 🛡️

Next: showing your whole list nicely! 👀

print("I can remove tasks like a pro! 🥇")

Quick Check ✅

Let's check your removing skills! 🧠

Recap Time! 🎒

Great work, you can cross off tasks now! 🌟

  • remove(name) takes out by name 🗑️
  • pop(i) takes out by position 🍿
  • clear() empties the list 🧹
  • Always check with in first 🛡️

Next: show the whole list beautifully! 👀

print("Removing Tasks: complete! 🚀")

Frequently asked questions

Is the “Removing Tasks” lesson free?

Yes — the full text of “Removing 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 “Removing Tasks”?

Cross things off. 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 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Removing 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