def total(numbers)sum_so_far for number in numberssum_so_far +number return sum_so_far this value is returned return this value finally we need to specify exactly what value the function is going to return we do this with another python keyword"returnthe value that follows the return keyword is the value returned by the function when python reaches the return statement in function definition it hands back the value and ends the execution of the function body itself