3. Put it together bugged?


#1



https://www.codecademy.com/courses/python-beginner-en-qzsCL/0/3?curriculum_id=4f89dab3d788890003000096


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


#2

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


#3

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...


#4

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.


#5

Glad you figured it out :slight_smile: .


#6

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.


#8

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