Lesson Number One - Student becomes the Teacher


#1

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

Here is my code:
lloyd = {
"name": ["Lloyd"],
"homework": [],
"quizzes": [],
"tests": [],
}
alice = {
"name": [],
"homework": [],
"quizzes": [],
"tests": [],
}
tyler = {
"name": [],
"homework": [],
"quizzes": [],
"tests": [],
}
print lloyd["name"]

What am I doing wrong?


#2

A common error. We write the name as a string, not a list.

"name": "Lloyd",

#3

Thank you for your help! I was starting to get frustrated.


#5

you forgot the "" marks:

"name": "Lloyd",


#7

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