Student Becomes the teacher - Put it together


#1

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"].
error: Oops, try again. It looks like Lloyd is not in the students list..
How do i solve that.


#2

The rest of your student dictionaries are all in lowercase letters (tyler, alice). Why does Lloyd have an upper case?
Also, students should be a list of dictionaries instead of strings :slight_smile:


#3

The list called 'students' does not take student names, which is what you have. It takes dictionary names. Hence, your list should contain the names of the dictionaries created earlier.
((i.e. should be: students = [lloyd, alice, tyler] ...... not: students = ["Lloyd", "alice", "tyler"]


#4

tanx for the correction


#5

tan for the assistance.


#6

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