I would like to make the following sum given two lists:
a = [0,1,2,3,4,5,6,7,8,9]
b = [2,3,5]
The result should be the sum of the every b element of a like:
b[0] = 2so the first sum result should be:sum(a[0:2])b[1] = 3so the second sum result should be:sum(a[2:5])b[2] = 5so the third sum result should be:sum(a[5:10])
The printed result: 1,9,35