Error in printing average


#1



https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096


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 = []
    results.apend(get_average(lloyd))
    results.apend(get_average(alice))
    results.apend(get_average(tyler))
    return results


#2

append() is with two p's

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


#3

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