Hi @objectjumper86545 ,
for loops that you have do not assign the necessary values to your variables in preparation for the final
return statement. In fact, the following two lines of code and the other two similar blocks of code would cause the function to
return before processing is completed for all of the relevant data ...
for homework in student:
Replace the above with ...
homework = average(student['homework'])
Perform corresponding replacements for the other two
for loops as well.
This statement is fine as is ...
return .1 * homework + .3 * quizzes + .6 * tests
EDITED (February 8, 2017) to add the following:
return statement is executed, execution of the
function terminates, and a result is passed back to whatever statement called the function.