3. Put it together bugged?



The code seems to behave correctly, however it is not accepted. I get the error:
"Oops, try again. It looks like Lloyd is not in the students list. "
I have tried Lloyd capitalized and lower case, but yet it seems to not accept it.

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


Your students list should be a list of dictionaries and not a list of strings.


Then what else should be in the dictionary? The instructions are very unclear here as all they say is to make a list with lloyd, alice, and tyler below the existing code, and I see the same students list on other peoples' code that are further forward...


Nevermind, I figured it out, I tried it that way using

students = [lloyd, alice, tyler]

first time around and it threw errors, plus I misunderstood what you were saying in your reply, my mistake.


Glad you figured it out :slight_smile: .


As Note:
For those who are not English native speakers.

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

is not as clear as intended.

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

is maybe a little bit more specific.


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