# I want to make it clear I will be using very little python verbage to explain this in plain english. students_period_A = ["Alex", "Briana", "Cheri", "Daniele"] students_period_B = ["Dora", "Minerva", "Alexa", "Obie"] for student in students_period_A: # student is the temporary variable. This is what we are going to call in each list. # You want to put A into B. So "A" is going to be the focus for the statement. -----------.append() # So now, each students_period_A is now counted as "students". So you want to........ # If you print it you should see only four people, as it is only wanting to print the students, not the variable print(student)
In your comment “# You want to put A into B.” and then at the last comment it says “If you print it you should see only four people,…” then what is the point of even writing “--------.append()” code? if you can not add elements of B in A. It was not clear for me to understand the purpose of -----------.append()'s existence.
Yes. I discovered .append() while trying to solve this exercise as well!