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: [-34, 29, -51, -6, -85, -25, -93, 77, -11, -4, -70, 57, -22]
Output:
[-2.5, -11.0, -28.5, -45.5, -55.0, -59.0, -8.0, 33.0, -7.5, -37.0, -6.5, 17.5]