4. For the record. So wired error


#1



4. For the record

The result came like this:

Tyler [0.0, 87.0, 75.0, 22.0] [0.0, 75.0, 78.0] [100.0, 100.0] Lloyd [90.0, 97.0, 75.0, 92.0] [88.0, 40.0, 94.0] [75.0, 90.0] Alice [100.0, 92.0, 98.0, 100.0] [82.0, 83.0, 91.0] [89.0, 97.0]None

However, I got this error and I am confused:(


"Oops, try again. Did you print out each student's name? It looks like "Tyler" wasn't printed."


students=[tyler, lloyd, alice]

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


#2

You don't need the commas after each print statement.


#3

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