The indentation of your 'return' statement is incorrect. Where you placed the 'return' is only allowing the first bit in the loop. Try putting this line on the same level as the for loop. That way, the loop will complete and your function will return its result. Python uses indentations to place codes in blocks.
Here is the proper indentation:
results = 
for student in students:
Hope that helped.