3/11 Lloyd won't get in my student list


#1

"Oops, try again. It looks like Lloyd is not in the students list."
He is in the list! Help

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

It doesn't matter if it's capital in the students list or not, it give the same error, "Oops, try again. It looks like Lloyd is not in the students list."


#2

print students without ""


#3

your code must be look like this:

  students = [lloyd, alice, tyler]

cas the items in students are dictionaries


#4

Hi @husun,

students=["Lloyd", "Alice", "Tyler"] implies that your list students contains just the strings "Lloyd" , "Alice" and "Tyler", instead of the dictionaries lloyd, alice and tyler.

Regards,
Khoel


#5

Thanks man :slight_smile:


#6