Lesson one


#1

For some reason it is giving the error that the key Lloyd does not exist in the dictionary lloyd.

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

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

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


#2

For the name values, only, we should use strings, not lists. Remove the square brackets and your code will be accepted. Also, on the last value of each dictionary ('tests'), we do not need a comma.


#4

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