Im doing everthing right yet i get ' Your code threw a "global name 'lloyd' is not defined" error.'


#1



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


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


I don't know why this is happening ive looked on the forums and I'm doing everything the same

edit: I fixed it somehow


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

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

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


#2

Your lloyd dictionary should be lloyd not Lloyd :slight_smile:


#3

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