Last part- how is everybody doing


#1

https://www.codecademy.com/courses/learn-python/lessons/student-becomes-the-teacher/exercises/how-is-everybody-doing-?action=lesson_resume

One of the following is missing or broken when we tried to use it: alice, lloyd, tyler, students, get_class_average, get_letter_grade

I don’t know why it’s so complicated- all I needed to do was print. I tried playing with the indention but it dosent seem to be the problem. also, for some reason the “print” code is white- should it be this way? I don’t know how its like in the new format.

```python
 def get_class_average(class_list):
    results = []
    for student in class_list:
      results.append(get_average(student))
    return average(results)
  
  students = [lloyd, alice, tyler]
  print get_class_average(students)
  print get_letter_grade(get_class_average(students))

#2

the students list should be global, and the function call should be outside the function (given function call executes the function) so they all should have no indent, if you need more help, post your full code and make sure to use format:

so we can see the indent levels you use


#3

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