Arrays with Loops

The for loop with arrays

The individual values in an array are accessed through an index number. The for loop variable can be used as an index number. However, the list values can also be used directly in the for loop.

Get hands-on with 1400+ tech skills courses.