4/11 what's wrong with console...?


I wrote code by using two for statements..
And as you guys can see.. the order of result goes like this

All 3 students have same order.
I don't get it...help me


Refer this code
students = [lloyd,alice,tyler]
for student in students:
print student["name"]
print student["homework"]
print student["quizzes"]
print student["tests"]


alternative code I've tried that works

def students(names):
for item in names:
print lloyd[item]
print alice[item]
print tyler[item]


students = [lloyd, alice, tyler]
for stu in students:
for key in stu:
print stu[key]