Lolol


#1

def average(x):
total = sum(x)
aver = float(total)/len(x)
return aver
def get_average(student):
homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])
weighted_aver = 0.1*homework + 0.3*quizzes + 0.6*tests
return weighted_aver


#2
def average(x):
    total = sum(x)
    aver = float(total)/len(x)
    return aver

def get_average(student):
    homework = average(student["homework"])
    quizzes = average(student["quizzes"])
    tests = average(student["tests"])
    weighted_aver = 0.1*homework + 0.3*quizzes + 0.6*tests
    return weighted_aver