4. The Record (need help with converting to integers)


#1

    "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]

print students["name"]
print students["homework"]
print students["quizzes"]
print students["tests"]

It gives me the error:
TypeError: list indices must be integers, not str

so how do i turn it into the 'print student[name]' into integers?


#2

from the instructions:

for each student in your students list

this is a pretty big hint you need a loop


#3

:smile: ummm... i didn't see that... thanks


#4