0Pricing
Coding for Kids · Lesson

Adding and Removing Items

Use append and remove to change a list.

Changing Your List 🔧

Hello, list boss! 👑 Lists are not stuck forever. We can add new things and remove old ones anytime! 🎉

Adding with append() ➕

Use .append() to ADD a new item to the END of a list. Like dropping a toy in the basket! 🧺

fruits = ["apple", "banana"]
fruits.append("cherry")
print(fruits)

All lessons in this course

  1. What Is a List?
  2. Getting Items by Position
  3. Adding and Removing Items
  4. Looping Through a List
← Back to Coding for Kids