...

Chapter 4 - Python Quest

Collections

Use list size, indexes, membership, and list-building loops.

XP
0Level 1
Stars
0/18quest stars
Combo
0clean runs
Rank
Seed0/160 Python score
Collections

Lineup Size

100 XP

A teacher checks how many kids are waiting in the field trip line.

Write lineup_size(names) so it returns how many names are in the list.

Sample checks

lineup_size(["Mia","Sam","Noor"])returns3

Explanation: three kids in line

lineup_size([])returns0

Explanation: empty line

Hint

Hints are ready when you want one.

Lesson reference

Review: Lists hold many values

Your Python

lineup_size

Loading editor

Judge

Ready

0/4

Run your code when it feels ready.