You have already completed these exercises!
Do you want to take them again?
You completed the NUMPY Differences Exercises from W3Schools.com
Share on:
Consider the following code:import numpy as nparr = np.array([1, 2, 3, 4])newarr = np.diff(arr)What will be the result of newarr?
import numpy as nparr = np.array([1, 2, 3, 4])newarr = np.diff(arr)
newarr
[1 1 1 1]
[1 1 1]
-2