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


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:
    return average(results)


@acrodan ,

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



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


@acrodan ,

Everything else there contributes to the result.


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