I have a list such as this:
lst = [1, 13, 5, 23, 22, 1, 2]
And I would like to find the difference between every two adjacent elements using a lambda expression to get this:
differences = [12, -8, 18, -1, -21, 1]
How would I do this? Thank you.