Hackbright Code Challenges
Sum List: Solution
« Back to Homepage
Sum List
Easier
Math, Loops
sum-list-solution.zip
def sum_list(num_list): """Return the sum of all numbers in list.""" # START SOLUTION output = 0 for num in num_list: output += num return output