Make a List, Check It Twice

You’ve looped through numbers—now loop through data! In this lesson, you’ll use arrays to hold lists of things and loop through them with ease.

Goal

You will learn to:

  • Create and use arrays (lists).

  • Access items by index.

  • Loop through arrays with a for loop.


Make an array

An array is just a list. Instead of repeating values in variables like this:

Get hands-on with 1400+ tech skills courses.