Can someone help me? I am stuck.
Here is my code.
What errors are you getting? What isn't working in your code?
For the last line of code you should have: return average(results)
Also, the final return line should be indented to the left (directly under 'for') so that it is not part of the for statement.
I figured it out myself. Thanks for your help though!
I wanted to know why this was wrong. I figured that because I separately identified what I wanted the program to do it would work but I continue to get error messages.
Does it need to be more concise?
my error message -
line 54 should read results.append(result)
Here you go ...
for student in students:
Thank you, I've been stuck on this for a little bit! Is it because I used classroom instead of students?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.