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
[-2, -18, 94, -67, -5, 10, 29, -39, 61, 50, -17, 97, 48, -51, 63]
Answer:
[16, 112, 161, 62, 15, 19, 68, 100, 11, 67, 114, 49, 99, 114]