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
[-51, -97, 47, -1, -33, -59, -5, -12, -77, 52, -99, 87, -85, -76]
Answer:
[46, 144, 48, 32, 26, 54, 7, 65, 129, 151, 186, 172, 9]