Please Help! Put it Together


#1



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


Everytime I run the code I get 'It looks like Lloyd is not in the students list'.


Can someone help me?


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 = ['Llyod', 'Alice', 'Tyler']


#2

You store strings in your students list, why?


#3

What are we suppose to store in the list, because i am having the same isue


#4

the dictionaries (or to be specific, references to the dictionaries) so we can loop over them later (like if we want to calculate a class average)


#5

So we have to put the dictionaries in the students list?


#6

the variable containing the dictionaries, yes, this will create reference to dictionaries in memory


#7

Alright, thanks alot


#8

Thank you, it worked.

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,
]

Just incase someone needs it


#9