11/4 Student becomes a teacher. What am i doing wrong?


#1

This is my code and i think i have written it correct. But im getting an error as
(Oops, try again. Did you print out each student's name? It looks like "Lloyd" wasn't printed.) but at the output Llyod name is been printed. Can any one help?

lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name": "Alice",
"homework": [100.0, 92.0, 98.0, 100.0],
"quizzes": [82.0, 83.0, 91.0],
"tests": [89.0, 97.0]
}
tyler = {
"name": "Tyler",
"homework": [0.0, 87.0, 75.0, 22.0],
"quizzes": [0.0, 75.0, 78.0],
"tests": [100.0, 100.0]
}

students=[lloyd, alice, tyler]

for student in students:
print 'student name:%s' %student['name']
print 'student homework:%s' %student['homework']
print 'student quizzes:%s' %student ['quizzes']
print 'student tests:%s' %student['tests']


#2

@abhijithmedanagesh: Have you tried printing only the values without anything else?
I've done that and, for some reason, it worked. On the instructions there are no things saying how it should be printed but I believe it's supposed to be something "simple".


#3

Hi try to remove the space between

student and ['quizzes']