Lesson 2 of 9 · 7 min

Lists and data structures

A list (array) stores many values in order, accessed by index (starting at 0). Loops let you process every item. Other structures — like dictionaries (key→value pairs) — organise data for fast lookup.

scores = [90, 85, 72]

Ordered values accessed by index

Let’s try it! ✍️

Question 1 of

🎉

Great job!

You finished this lesson.

Next lesson → All lessons