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