Silly Error for Lesson Number One


#1



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


Hi!
I think I am tired and am overlooking something super silly but I can figure out what it is... I am supposed to create three dictionaries which is fairly simple but I am getting the following error:

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


I have double-tripled checked that I have written given the value "Lloyd" to the name key, and even change the use of 'Lloyd' by "Lloyd" but nothing...
Sorry in advance for asking help on such a simple task...


lloyd = {
    "name": ["Lloyd"],
    "homework": [],
    "quizzes": [],
    "tests": []
}

alice = {
    "name": ["Alice"],
    "homework": [],
    "quizzes": [],
    "tests": []
}

tyler = {
    "name":["Tyler"],
    "homework": [],
    "quizzes": [],
    "tests": []
}


Facing probel with Lesson 1
#2

why do the values of name key are of type list? They are just names, i would use string


#3

I guess you are right, I just went on automatic and made it a list since all the other keys were list too!
Thanks for taking the time for answering :slight_smile:


#4

never assume, always think why you do things (why use a certain data type), very important in programming


#5

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