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: [77, -16, -53, -56, -98, 10, -25, -70, -97, -23, -78, -39, -51]
Output:
[30.5, -34.5, -54.5, -77.0, -44.0, -7.5, -47.5, -83.5, -60.0, -50.5, -58.5, -45.0]