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 1200+ tech skills courses.