Cant proceed to next level


Did you print out each student’s name? It looks like “Lloyd” wasn’t printed

I keep getting the above message as an error but i dont seem to get the bug in my code below. Any help.
link to lesson

lloyd = {
  "name": "Lloyd",
  "homework": [],
  "quizzes": [],
  "tests": []
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]

lloyd ["homework"].insert(0,"90.0")
lloyd ["homework"].insert(1,"97.0")
lloyd ["homework"].insert(2,"75.0")
lloyd ["homework"].insert(3,"92.0")
lloyd ["quizzes"].insert(0,"88.0")
lloyd ["quizzes"].insert(1,"40.0")
lloyd ["quizzes"].insert(2,"94.0")
lloyd ["tests"].insert(0,"75.0")
lloyd ["tests"].insert(1,"90.0")

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


Nice to try things out, but we don’t want to get ahead of ourselves in the lessons. Stick to the instructions and write what is expected.

for student in students:
  print student['name']
  print student['homework']
  print student['quizzes']
  print student['tests']


Kk. Thanks
But I still don’t know the issue with my code


I’ll go out on a limb and say it is the unexpected code, indicated above.


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