Lesson Number One


#1



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


Hi, my code is bringing up an error but I'm not too sure why. It brings up the error:
Oops, try again. Did you create a dictionary named lloyd? Your code threw a "global name 'lloyd' is not defined" error.

File "python", line 19
"tests": [],
^
SyntaxError: invalid syntax


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

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

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


#2

"quizzes": [] // missing ,

see comment


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.