Put It Together



<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

<What do you expect to happen instead?>


Replace this line with your code.

<do not remove the three backticks above>

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

I don't understand what I am doing wrong?

Below your code, create a list called students that contains lloyd, 
alice, and tyler.


your students list contains strings, why? You should store the dictionaries (technical note, reference to dictionary) in the list. Not strings. if we then try to get each student name:

students = ["lloyd","alice","tyler"]
for student in students:

we get an error, you should really store the dictionaries in the list so we can loop over the dictionaries


I fixed it thank you.
I am still learning and someone explained to me how it works thanks once again for your help. I greatly appreciate it.


yea, we store the dictionaries in the list so we can loop over all our dictionaries, quit useful if we want to print each student name or a specific grade, or calculate a class average (you will work towards that in this track) good luck!


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