You are adding students to a Poetry class, the size of which is capped at 6.
while len(students_in_poetry) < 6:
student = all_students.pop()
students_in_poetry.append(student)
print(students_in_poetry)
There might be something I’m not seeing here, but if the class is capped at 6, why isn’t len(students_in_poetry)<=6? I tried it this way and it added a 7th student. I thought len(students_in_poetry)<6 would print 5 elements/students.