How is everybody doing


Help, I'm getting this error,

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

and here's my code;

def get_class_average (students):
results = []
for student in students :
return average(results)

students = [lloyd, alice, tyler] 
print get_class_average(students)
print get_letter_grade(get_class_average(students))

what am I doing wrong?


It lists a few things and says not all are present, and only some of them are in the code you posted.. So, add them back, right?
Also, that isn't valid syntax, you're missing a bunch of indentation (make sure that what you post is identical to your code)


Oooh thanks, got it :slight_smile:


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