Lesson Number One


#1

lloyd = { 
    "name" : ["Lloyd"] ,
    "homework" : [],
    "quizzes" : [],
    "tests" : []
}
alice = {
    "name" : ["Alice"],
    "homework" : [],
    "quizzes" : [],
    "tests" : []
}    
tylor = {
    "name" : ["Tylor"],
    "homework": [],
    "quizzes" : [],
    "tests" : []
}

what is the wrong ?
error: ops, try again. Did you create a dictionary named tyler? Your code threw a "global name 'tyler' is not defined" error.


#2

This will be a plain string, not a list.

name: "Lloyd",

Same applies to other two dictionary values.


#4

ok thanks i finished this long ago and i understand now


#5

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