Write a python program to find Cumulative sum of a list


Topic: Write a python program to find Cumulative sum of a list

Solution

list=[10,20,30,40,50]
new_list=[] 
j=0
for i in range(0,len(list)):
    j+=list[i]
    new_list.append(j) 
     
print(new_list) 



List all Python Programs