In this task you are given a list of numbers and you need to find the average of each two consecutive values. The average of two numbers a and b is calculated as: (a + b) /2. The output should be a list of the averages of each two consecutive values. A list is presented with two brackets and comma-separated values, like: [1,2,3].
One example is below.
Q: [-4, 7, 3]
A: [1.5, 5]
Rationale: To create the answer, we should first calculate the average of -4 and 7, that is: (-4 + 7 ) / 2 = 1.5, so the first element of the answer is 1.5. Then, we need to calculate the average of 7 and 3, that is: 5. So the second element of the answer is 5.
Q: [-81, 91, 12, -96, 33, -69, -12, 22, -55, -57, 7, -18, 42, -13]
A:
[5.0, 51.5, -42.0, -31.5, -18.0, -40.5, 5.0, -16.5, -56.0, -25.0, -5.5, 12.0, 14.5]