Student Become the Teacher Lesson 1


#1



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

Did you create a dictionary named lloyd? Your code threw a "global name 'lloyd' is not defined" error.

I have no clue why this isn't working.


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

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

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


#2

Try refreshing the page or use a different browser.
Your code works just fine for me though.


#3

Try taking the last comma off each of the last list lines.


#4

I got the same error message as before.


#5

Are you sure my code works for you? I have tried it in a different browser and refreshed the page but nothing changed.


#6

Ugh, I hate when I don't notice the little things about it.
If the code you're using is still the same as the one in your first comment, you forgot to add the double points : after "quizzes".

Can't seem to find other kind of errors.

Edit: not only in Alice's dictionary but in Lloyd's aswell.


#7

Yeah, I actually figured that out just before I read this post. Thanks anyway though!