Teacher: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].
Teacher: Now, understand the problem? Solve this instance: [38, 81, -31, -30, 53, -71, -55, -52, 73, 21, -19]
Student:
[59.5, 25.0, -30.5, 11.5, -9.0, -63.0, -53.5, 10.5, 47.0, 1.0]