Lesson 1 for Student becomes teacher


#1

This is the error message I get. Oops, try again. Did you create a dictionary named lloyd? Your code threw a "global name 'lloyd' is not defined" error. What's confusing me is that in the editor, it reads, File "python", line 2
"homework"[],
^
SyntaxError: invalid syntax

It's weird because I don't know if there is an error in "Lloyd" or "homework" any feedback is always helpful!


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

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


#2

lloyd is not defined because the error is thrown before lloyd is defined. Compare the first member to the latter in all three dictionaries.