I need help ASAP, don't seem to know what's wrong with my code


#1

This is the code

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

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

tyler = {
“name”: “Tyler”,
“homework”: “[]”,
“quizzes”: “[]”,
“tests”: “[]”
}
And this is the feeback am getting…

File “python”, line 5
"tests": “[]”
^
SyntaxError: invalid syntaxstrong text

<do not remove the three backticks above>

#2

Hi @valz009,

lloyd is missing a comma here …

“quizzes”: “[]”

A SyntaxError detected at the beginning of a line is often evidence of a problem on the previous line.


#3

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

allice = {
“name”: “Alice”,
“homework”: [],
“quizzes”: [],
“tests”: []
}

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

and i got this respond
Did you create a dictionary named alice? Your code threw a “global name ‘alice’ is not defined” error.


#4

You have …

allice = {

To conform to the specifications of this exercise, that should be …

alice = {

#5

thanks a lot, I have gotten


#6