Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add all values in a list python without using sum function

def int_list(grades):   #list is passed to the function
    summ = 0 
    for n in grades:
        summ += n
        print summ
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #values #list #python #sum #function
ADD COMMENT
Topic
Name
2+2 =