Put it together


#1


why does it says that lloyd is not in my student dictionary?

i dont get it

Replace this line with your code. 
lloyd = {
    "name": "Lloyd",
    "homework": [90.0,97.0,75.0,92.0,],
    "quizzes": [88.0,40.0,94.0,],
    "tests": [75.0,90.0,]
}
alice = {
    "name": "Alice",
    "homework": [100.0, 92.0, 98.0, 100.0],
    "quizzes": [82.0, 83.0, 91.0],
    "tests": [89.0, 97.0]
}
tyler = {
    "name": "Tyler",
    "homework": [0.0, 87.0, 75.0, 22.0],
    "quizzes": [0.0, 75.0, 78.0],
    "tests": [100.0, 100.0]
}

students = ["lloyd", "alice", "tyler"]


#2

Are you sure this is all your code from the lesson you are on?


#3

yes this is all the codes


#4

i dont know why the system is not letting me pass, im pretty sure i didnt forget anything


#5

it says: "Oops, try again. It looks like Lloyd is not in the students list."


#6

Remove the quotation marks around lloyd, alice and tyler in your list,


#7

I have the same problem. I cannot get rid of this though i tried may times. i cannot understand what problem is?


#8

I solved using the below code.

students = [lloyd, alice, tyler]


#9

Yes, that is what I instructed @tagslayer57399 to do :slight_smile:


#10

lloyd = {
    "name": "Lloyd",
    "homework": [90.0,97.0,75.0,92.0],
    "quizzes": [88.0,40.0,94.0],
    "tests": [75.0,90.0]
}
alice = {
    "name": "Alice",
    "homework": [100.0, 92.0, 98.0, 100.0],
    "quizzes": [82.0, 83.0, 91.0],
    "tests": [89.0, 97.0]
}
tyler = {
    "name": "Tyler",
    "homework": [0.0, 87.0, 75.0, 22.0],
    "quizzes": [0.0, 75.0, 78.0],
    "tests": [100.0, 100.0]
}
student = [lloyd,alice,tyler]  #This is an abstacle  Look it very well

Final Answers please thx!!!!!111


#11

student = [lloyd, alice, tyler]

is just a matter of space


#12

Note that students = [lloyd, alice, tyler] is different from students = ['lloyd', 'alice', 'tyler'] in that the former is a list whose items are the dictionaries formerly defined, while the latter is a list whose items are strings. One is very different from the other in content.


#13

Thank you very much! that really helped!i was thinking about this a whole week XD.


#14

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