I want to subtract the previous value from the next value in a list and finally add the out put into a dictionary.
Example:
# Original List
l= [1, 10, 25, 35, 55, 100]
# Expected Out put
nl = [9, 15, 10, 20, 45]
# another list
lst = ['col1', 'col2', 'col3', 'col4', 'col5']
# final result
result = [{'col1': 9}, {'col2': 15}, {'col3': 10}, {'col4': 20}, {'col5': 45}]