1. Lesson Number One


#1


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

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


le wut....... like seriously why is it saying i don't have the EXACT STRING THAT I HAVE RIGHT WHERE IT SAYS I DON'T HAVE I!?!?!???!!??!??!??!?!???!!!?????? i am extremely confused and have manipulated the code in small variations because i am pretty sure this should be the code so what am i getting wrong???


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


#2

That's a list, the name should be a string


#3

To answer your question the code should look like this.

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

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

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

Since you are only passing one value for "name", it does not need the bracket because it will not be a list like the test score, quizzes and homework are.


#4

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