Let's say I have numbers from [1,2,3,4,5...], and If I need to find (1+2)/2 and for a second, (2+3)/2 and then for the third, (3+4)/2, and so on, I don't know how to do that
Then, how to sum the entire list of numbers?
I also tried
b = sum(a)
But it's not working for me. Anyone, please help me!!