Part of the whole


#1



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:
       results.append(get_average(student))
    return average(results)


#2

Your code is fine.

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