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: [-10, -30, -57, 31, 84, 71, 83, 75, -30, -36, 3, 48, -17, 56, -50]
Output:
[-20.0, -43.5, -13.0, 57.5, 77.5, 77.0, 79.0, 22.5, -33.0, -16.5, 25.5, 15.5, 19.5, 3.0]