0
I have the following vector:
a = [10, 20, 30, 40, 50, 60...]
I need to create a new list that is the subtraction of the later index by the previous one. For example:
b = [indice[0] - indice[1], indice[2] - indice[3], indice[4] - indice[5]...]
In this case, I need to have the values:
b = [10, 10, 10...]
Could someone help me by telling me how I do it?
Grateful for the help.
Thank you very much!
– Danilo