1/9 Lesson Number One, what did I do wrong?


#1


#2

you forgot a ,
add it at the end of lines with "tests" : []
->
"tests" : [],

EDIT: also to lines 10, 12, 17, 18, 19
also no indent needed on lines 14, 21


#3

Thanks for the response, it still gives me the same error however.


#4

Are you sure? I just ran this and receive no errors:

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


#5

Exactly the same for me. I ran this without errors


#6

It now gives me this error


#7

needs a comma behind the lines 8 & 15 there. Also alice needs to be written with capital A on line 8 only (and tyler with capital T on 15)


#8

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


#9

Can anyone explain why the comma is needed?


#10

Hey gadsie,
@stephaniebudlender already answered your question, I just wanted to add that the problem was simply after every key in the dictionary, you have to add a comma so the compiler knows where each key begins and ends. Also the last key in the dictionary does not necessarily need the ending comma but you can add it anyway and the compiler will work. For example both lloyd dictionaries below will work just as well:

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

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