Hackbright Code Challenges

Sum List: Solution

Sum List: Solution

Problem

Sum List

Whiteboard

Easier

Concepts

Math, Loops

Download

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