Lesson Number one


#1

I am receiving an error in this assignment telling me that I have not set the "name" key in the lloyd dictionary to "Lloyd"

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

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

Any suggestions? Thanks


#2

Hi Try to remove the name of the students inside [ ] and just keep the name like that "Lloyd" and so on...


#3

Hi, thanks, my problem was solved by replacing
"name":["Lloyd"]
with
"name":"Lloyd"

and performing the same substitions subsequently. Thanks again.


#4

They should really specify that they do not want a list for the key name, but a single string. That would make more sense imo.

Thanks for the Question and the Answer.


#5

I figured as much, but I did not want to write it a different way than taught. Because in school they took points off for using other methods not taught by the class yet. So for fears of the invisibleness punishing me I came to read this before.

I do agree though they throw some curve balls sometimes, seems like its on purpose sometimes.