Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import numpy as np arr = np.array([10, 15, 25, 5]) newarr = np.diff(arr) print(newarr)
[ 5 10 -20]