For The Record - did I do this rght?


Can someone say do I wrote the code right? I have bad feeling about it.

students = [lloyd, alice, tyler]

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


this line:

for students in students:

so now, each individual student is stored in the same variable as all students? that sounds like a bad idea. i would change this


Ok, I have removed "s" from students except the dict


i recommend you to change the variable which gets assigned the values:

for student in students:

so now student will hold every student individually:

for student in students:
    print student

i hope this is what you did


Yup, I did it

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


perfect, you understand why this make sense? Then you are good to move on :slight_smile:


Yea, no. Im sleeping like 4h every night for 2 weeks. Sometimes I'm forgetting what I was actually doing and I ahve to read every instruciton 3 times to understand + english sin't my native language :stuck_out_tongue:
Now I'm doing this one:


4 posts were split to a new topic: For the record