Error in printing average


It shows an error saying : Oops, try again. get_class_average([alice]) resulted in an error: 'list' object has no attribute 'apend'

def get_class_average(students):
    results = []
    return results


append() is with two p's

your get_class_average should work for a class of any size (1, 2 or 3 students)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.