I have the following vector:
a = [10, 20, 30, 40, 50, 60...]
I need to create a new list that is subtracting the previous index from the previous one. For example:
b = [indice[0] - indice[1], indice[2] - indice[3], indice[4] - indice[5]...]
In this case, I have to answer the values:
b = [10, 10, 10...]
Could someone help me by saying how do I do this?
Thanks for the help.