Student Becomes the Teacher 8/9 Part of the Whole Unclear Instruction


#1

In line three of the instructions, we are told to use the list 'class' (which contains our student items). This is misleading, as there does not seem to be any such list called 'class'. Using 'students' instead seems to work (in my case, using 'class' resulted in the item 'alice' returning the wrong average, even though my code is correct, as evidenced by my completion of the lesson after switching 'class' out for 'students').

If anyone else is getting an error message, make sure you're not using 'class' in your for loop. That might solve your problem.

Link to the exercise:
https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096


#3

Post your code so I can see where you're going wrong.


#4

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