8/9 impossible error


#1

Look at the bottom, the part that 8/9 deals with. I have worked on this for weeks, yet still can't find a solution. I bet you can't either, but I've been wrong before. Oh, wait, a lot, at least in this course.


#2

Well there are a few things you can remove because you are not using them. Also it appears you are not returning the score like you need to!

Compare your code to mine.

CODE: 9/9

def average(numbers):
    return (sum(numbers) / len(numbers))
    
def get_average(student):
    return (0.1 * average(student["homework"])
    + 0.3 * average(student["quizzes"])
    + 0.6 * average(student["tests"]))


def get_letter_grade(score):
    if score >= 90: 
        return "A"
    elif score >= 80: 
        return "B"
    elif score >= 70: 
        return "C"
    elif score >= 60: 
        return "D"
    else: 
        return "F"

students = [lloyd, tyler, alice]

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

#3

Your code is shorter and brief, I need learn to you.