Codecademy Question:
“Suppose we have two lists of students, students_period_A
and students_period_B
. We want to combine all students into students_period_B
.”
Provided Code Solution (doesn’t work)
students_period_A = [“Alex”, “Briana”, “Cheri”, “Daniele”]
students_period_B = [“Dora”, “Minerva”, “Alexa”, “Obie”]
for student in students_period_A:
students_period_B.append(student)
print(student)
Result from Provided Code Solution
Alex
Briana
Cheri
Daniele
It doesn’t print the names from list B, which is what the prompt is asking for.
I have looked over every discussion post I can find and I still cannot figure out how to solve this. Please assist.