Caffeinated Coder
Book an appointment
Lesson 11 · Data structures

Arrays and lists

Most programs work with many values at once: the scores in a game, the songs in a playlist. A list keeps them in order, in memory slots that sit side by side. Step through nine lines of Python and see why reading an item by its index is instant, why indexes start at 0, how append finds room, and why inserting at the front makes every item move.

11 min10 steps5 questionsBeginner
Fig 11 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.