1. Lesson Number One _ What is wrong with mine?


#1
lloyd = {
    "name"     : "Llyod",
    "homework" : [],
    "quizzes"  : [],
    "tests"    : []
    }
alice = {
    "name"     : "Alice",
    "homework" : [],  
    "quizzes"  : [], 
    "tests"    : []
    }
tyler = {
    "name"     : "Tyler",
    "homework" : [], 
    "quizzes"  : [], 
    "tests"    : []
    }

Then I get
"Oops, try again. The name key does not have the value "Lloyd" in your lloyd dictionary."
as result.

Even if I changes as below, still I get error message that says "Oops, try again. The name key does not have the value "Lloyd" in your lloyd dictionary."

 lloyd = {
        "name"     : ["Llyod"],
        "homework" : [],
        "quizzes"  : [],
        "tests"    : []
        }
    alice = {
        "name"     : ["Alice"],
        "homework" : [],  
        "quizzes"  : [], 
        "tests"    : []
        }
    tyler = {
        "name"     : ["Tyler"],
        "homework" : [], 
        "quizzes"  : [], 
        "tests"    : []
        }

#2

Haha, "Llyod" != "Lloyd"


#4

Hello. Somebody can tell me why my code gives "The name key does not have the value "Lloyd" in your lloyd dictionary."????

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

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

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

Thank you :-)confounded:


#5

The key "name" should have a value that is a string, not a list with a string in it.


#6

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


#7

Same problem here :frowning:

Note: @datasolver29200 replies should be constructive or add to the conversation. For example; What have you done to try and solve your issue? Thanks!


#8

Remove the brackets from your names:

This: "name" : "Lloyd",

Not this: "name" : ["Lloyd"],


#9

This worked for me but I don't understand why Python doesn't like brackets around "Lloyd". Can explain, please?


#10

Putting brackets around the text means List, not just string.