Slight discrepancy in instructions


This is a minor issue, but whatever.

  1. Define a function called get_class_average that has one argument students. You can expect students to be a list containing your three students.
  2. First, make an empty list called results.
  3. For each student item in the class list, calculate get_average(student) and then call results.append() with that result.
  4. Finally, return the result of calling average() with results.

I think that should be For each student item in the students list, not class list. The argument is named students, and class is a reserved keyword in Python.


In this context, class is classroom which is synonymous with students. This module is no longer maintained so we will just have to accept it as it is. So long as you can see your way through the problem, this minor textual difference may be set aside.


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