Oops, try again. The name key does not have the value "Lloyd" in your lloyd dictionary


#1



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


Oops, try again. The name key does not have the value "Lloyd" in your lloyd dictionary.


Hey guys, I can't see what the prob is - seems to work fine in IDLE?


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

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


#2

Ho @praff,

You have the value that is intended for the "name" key enclosed in a list here ...

    "name": ["Lloyd"],

The value should be a str rather than str within a list. Remove the square brackets. Do the same for the other students.


#3

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