Why is the average returned incorrect?
Be sure to write your
return statement outside of the loop, otherwise your loop can only possibly run one time before
return is executed. As soon as a function executes a
return statement, it exits immediately and gives whatever value that is.
return statement should be on the same indentation level as the for loop so that it’s inside of the function, but outside of the