Part of the Whole - did I do this good? Bad feelings


#1



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


I'm not sure do my code is correct, can someone fast check it? I had sometimes situation that my code was a bit wrong, but the academy still accepted that


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


#2

@acrodan ,

Does this statement, which you have in the loop, accomplish anything needed to produce the result? ...

get_average(student)

#3

Nope, useless line. Thanks for that one :slight_smile: The rest is good?


#4

@acrodan ,

Everything else there contributes to the result.


#5

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