sum of elements in list python without function code example
Example 1: 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
Example 2: without using sum add item in list python
sum of list element