Compute the differences between adjacent elements in a list.
Constraints
Example
>>> consecutive_differences([5, 2, 8, 1]) [-3, 6, -7] >>> consecutive_differences([10, 20, 30]) [10, 10] >>> consecutive_differences([7]) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints