Atom

Slicing

A slice selects part of a value. A range includes its start and stops before its end, so adjacent slices can meet at the same boundary.

Take the first two scores

Use the range 0..2 inside brackets.

Atom
scores = [8, 12, 15]
first = scores[0..2]
print(first[0])
print(first[1])
Output
8
12

Index 2 is the stopping point. The element at that index is outside the slice.