0Pricing
Coding for Kids · Lesson

Adding Tasks

Append new items.

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)

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