0Pricing
Coding for Kids · Lesson

What Is a List?

A list holds many items together.

A Box for Many Things 📦

Hello, collector! 🧺 So far a box (variable) held ONE thing. But what if you have many toys? A list holds MANY things in one box! 🎉

Making a List 📝

We make a list with square brackets [ ] and commas between items!

fruits = ["apple", "banana", "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