In a range, the stop value is exclusive, meaning it is not included in the result. Since len(hairstyles) is 8, the final value of i in the iteration is 7, which is the index of the last item in each of the lists.