For The Record - did I do this rght?


#1



https://www.codecademy.com/courses/python-beginner-en-qzsCL/0/4?curriculum_id=4f89dab3d788890003000096


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']


#2

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


#3

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


#4

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


#5

Yup, I did it

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

#6

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


#7

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:
https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/1/2?curriculum_id=4f89dab3d788890003000096


#8

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


#12