Lesson Number One : Student Becomes Teacher


#1



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


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


It should have Passed the page succesfully


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

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

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


#2

You need to add a value for your tests keys. Otherwise it sees it as an incomplete dictionary. I think it asks you to add an empty list for the tests key.


#3

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