Lesson 7 of 12

Lists 📚

🎯 Grades 6–8 ⏱ ~25 minutes 💚 Intermediate

What You'll Learn

  • Create and access lists with indexing
  • Add and remove items with append and remove
  • Use sort, reverse, and len on lists
Quick Check

1. How do you access the first item of a list called 'items'?

Aitems[1]
Bitems[0]
Citems.first()

2. Which method adds an item to the end of a list?

Aadd()
Binsert()
Cappend()

3. What does len(['a','b','c']) return?

Aabc
B0
C3

4. What does items[-1] return?

AAn error
BThe last item
CThe first item