Detailed Instructions: 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].
Problem:[-40, 26, 76, -25, 66, -9, -76, -73, -92, -79, -14, 74, -22, 88, 28]
Solution:
[-7.0, 51.0, 25.5, 20.5, 28.5, -42.5, -74.5, -82.5, -85.5, -46.5, 30.0, 26.0, 33.0, 58.0]