Write a python function to add numbers in a list


Topic: Write a python function to add numbers in a list

Solution

def add(list):
    sum = 0
    for i in range(0, len(list)):
        sum += list[i]
    return sum



List all Python Programs