human
Subtracting the current and previous item in a list
assistant
Here is some code to create a list containing the subtraction of each item in list `L` from the item prior to it

[(y - x) for x, y in zip(L, L[1:])]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.