Part of the whole


Part of the whole

I got this error: Oops, try again. get_class_average([alice]) resulted in an error: unsupported operand type(s) for +: 'int' and 'NoneType'

Any thoughts on this?

Replace this line with your code. 

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


Your code is fine.

There's probably a bug in your previous code. :slight_smile: