Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Sum of list of numbers

def list_sum(num_list):
    the_sum = 0
    for i in num_list:
        the_sum = the_sum + i
    return the_sum

print(list_sum([1, 3, 5, 7, 9]))
Source by canvas.instructure.com #
 
PREVIOUS NEXT
Tagged: #Sum #list #numbers
ADD COMMENT
Topic
Name
7+1 =