NumPy - Indexing and Slicing
What is the output of the following code?
import numpy as np arr = np.array([3, 8, 1, 6, 0]) result = arr[arr > 3]
import numpy as np arr = np.array([3, 8, 1, 6, 0]) result = arr[arr > 3]
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions