9. How is everybody doing?


#1



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


error: Oops, try again. Did you remember to print the letter grade for the class's average?
although its prints 'B' grade according to the class average i.e. 83.8666666667 on the console.


Even though I've passed the right argument :get_letter_grade(get_class_average(students))
pls. help me find the error in my code!

My code:

def get_class_average(students):
    results=[]
    for student in students:  
        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

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