Why its not accepting brackets around the "Llyod"?


#1




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

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

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


#2

Because of Lloyd is not a list. (It could be, of course but not in this exersice)


#3

... but would make little sense if it were, unless of course it was a list of student data, first name, last name, id number, home room, etc.


#4

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