Last part- how is everybody doing


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.

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


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


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