Lists with Loops

The for loop with lists

The individual values in a list 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 a for loop.

Get hands-on with 1200+ tech skills courses.