Data Structures · Lesson 35 of 76

Lists

A list holds many values in order, inside square brackets:

Python

Loop over a list to work through every item:

Python

Your turn: make a list of three towns and print each on its own line.

Check your understanding

You’re reading for free. Sign in to save your progress, ask questions on any lesson, and earn a certificate when you finish.Sign in to keep my progress →

Lesson 35 of 76