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: [24, 59, -18, -92, 58, 75, 100, 95, 90, 85, -7, -100, -63, -13, -59]
Output:
[41.5, 20.5, -55.0, -17.0, 66.5, 87.5, 97.5, 92.5, 87.5, 39.0, -53.5, -81.5, -38.0, -36.0]