Im learning python on Codecademy and this task prints the list from the last index to 6. Why doesn't it prints from the first index to 6?
all_students = ["Alex", "Briana", "Cheri", "Daniele", "Dora", "Minerva", "Alexa", "Obie", "Arius", "Loki"]
students_in_poetry = []
while len(students_in_poetry) < 6:
student = all_students.pop()
students_in_poetry.append(student)
print(students_in_poetry)
the output is:
['Loki', 'Arius', 'Obie', 'Alexa', 'Minerva', 'Dora']