Just weight and see keep getting syntax error


#1



SyntaxError: invalid syntax

i don't know why i get syntax error can someone please help me?


def average(numbers):
    from math import *
    total=sum(numbers)
    total=float(total)
    total=total/len(numbers)
    return total
def get_average(student):
    homework=average(student["homework"])
    quizzes=average(student['quizzes'])
    tests=average(student['test']
    return 0.1 * homework+0.3 * quizzes+0.6 * tests


#2

1- student['test'] without )
2- indention, use a better text editor to write codes.
3- enter a blank line between functions
3- from math import * --- import * in a function not good, should import outer(global)