11 students become teachers


#1

I tripped over this one for a bit as well, but here's the correct answer. The 'students' list is asking for the dictionary variables of the student themselves, not the string of their name. I originally did the same as some in this thread where I created students["lloyd", "alice", "tyler"], but you cannot drill down into those string items as they are strings only, and not a dictionary with sub-values. Hope that helps.

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]

11. Student becomes teacher, odd error
#2

Hi I know that you want to help , and your code is right,and the lesson that you are they aske you to create an array with the name of you student .
Now look well the code of dorishb76 and look yours Its different because its from diferent lesson.