Atom

For loops

A for loop gets its values from something iterable, such as an array or a range. Use it when the data tells you how many steps to take.

Atom assigns each element in turn to score.

Atom
scores = [8, 12, 15]
for score in scores:
    print(score)
Output
8
12
15

The loop ends after visiting the last item.