Part 1. Definition
In this task you are given a list of integers and you need to find the absolute value of the difference between each two consecutive values. The output should be a list of the absolute value of the differences of each two consecutive values.
Part 2. Example
[7, 1, 5, 8, -4]
Answer: [6, 4, 3, 12]
Explanation: The output is a list of the absolute value of the differences of every two consecutive values. So this is a good example.
Part 3. Exercise
[37, -44, -27, 27, -98, 20, -24, 60]
Answer:
[81, 17, 54, 125, 118, 44, 84]