I have replaced my original code with the solution code (exact same) where we are asked to combine students in two periods into one. But I am getting the output as just the students in one period. I am not sure if I am understanding the question wrong or if the coding is wrong.
This is the code:
for student in students_period_A:
and the output is
which is the list of students in period A.