1/9 code throwing, "global name 'lloyd' is not defined" error


#1



https://www.codecademy.com/courses/python-beginner-en-qzsCL/0/1?curriculum_id=4f89dab3d788890003000096

Code is throwing this error
File "python", line 3
"homework": [],
Your code threw a "global name 'lloyd' is not defined" error.
^
SyntaxError: invalid syntax

I thought this was right syntax.. May someone help me?


lloyd = {
    "name":"lloyd"
    "homework": [],
    "quizes": [],
    "tests": []
    }
alice = { 
    "name": "alice"
    "homework": [],
    "quizzes": [],
    "tests": []
    }
tyler = {
    "name": "tyler"
    "homework": [],
    "quizzes": [],
    "tests": []
    }


#2

comma after name variable in all dictionaries


#3

It gives me this - Did you give lloyd the quizzes key? after you do it. I thought I did have a quizzes key in there.


#4

Hi and all your student name should begin with the uppercase "Lloyd", "Alice", "Tyler"


#5

Changed but not fixed.


#6

copy code again, please


#7

so your dictionary lloyd is like that?

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

#8

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


#9

yes, indeed. With the end as well.


#10

Hi what error do you get now?


#11

Oops, try again. Did you give lloyd the quizzes key?


#12

here

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

it's missing one z to quizzes


#13

Thank you! Quite a silly mistake made by me.