Definition: 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].
Input: [-5, -12, 63, 46, -38, -6, -77, 21, 22, 93, 95, -97, 24]
Output:
[-8.5, 25.5, 54.5, 4.0, -22.0, -41.5, -28.0, 21.5, 57.5, 94.0, -1.0, -36.5]