Correct answer not accepted on "Put it all together" Students becomes the teacher


#1



The instructions are the following:

Below your code, create a list called students that contains lloyd, alice, and tyler.

I created the list


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

When I click on verify, it shows an error message saying: "Oops, try again. It looks like Lloyd is not in the students list."

However this name is for sure on the list, if I type print students[0] I get Lloyd on the console.
I also tried with lower case, giving the same result.


#2

HI just remove the " " around you student name because it make them string. this part

students = ["Lloyd","Alice","Tyler"]

and they should be lower case.

because

you are puting the dictionary lloyd, alice, tyler in a list so if you put the " " it won't work


#3

Your answer helped me. Thanks.


#4

I have this and really can't figure out what's wrong with the students list:

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 = [llyod, alice, tyler]


#5

Hi this line

students = [llyod, alice, tyler]

You wrote llyod instead of lloyd


#6

Hello everyone, I corrected the error with wizmarco answer, no need for further answers. Actually my mistake is that I thought they wanted me to create a dictionary with the student names, not a list of dictionaries, which was required. Got it now, no need for further answers. Thanks for responding everyone.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.