I have a list and want to know if the following can be done in Python without adding extra libraries to improve my code.
I want to get a list of the differences between elements of a list.
orig_list = [12, 27,31,55,95]
#desired output
spacings =[15, 4, 24,40]
I know I can do it by making a second list and subtracting it, I just wondered if there was another/better way.