Not reading Lloyd in dict


#1



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

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

}

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


#2

the name values should be strings, why did you make them lists?


#3

so it should be "name": "Tyler"


#4

yes, it should be


#5

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