Student Becomes the Teacher, Lesson One


#1



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

The error states "Oops, try again. The name key does not have the value "Lloyd" in your lloyd dictionary."


I clearly have a key with "Lloyd" in my lloyd dictionary, and I even tested it with a print lloyd["name"] and it printed "['Lloyd']". I guess I expected it to run successfully? Is CA trolling me with their vague descriptions and specific expectations again?


lloyd = {
    "name": ["Lloyd"],
    "homework": [],
    "quizzes": [],
    "tests": [],
}
alice = {
    "name": ["Alice"],
    "homework": [],
    "quizzes": [],
    "tests": [],
}
tyler = {
    "name": ["Tyler"],
    "homework": [],
    "quizzes": [],
    "tests": [],
}


#2

your name key has a list value, the exercise tells you it should be a string value


#3

What it means? Please help me, I have the same problem


#4

I'll try to help. I overlooked what they wanted at first as well.

Your "name" key in the lloyd dictionary is asking for a string value"" and not a list[] value. Since the "name" key in the lloyd dictionary will be constant. You won't need to make it a list[].

Do the same for the others.

I hope this helps.


#5

Thanks for the explanation Gamer! I understand now =)


#6