NumPy - Indexing and Slicing
What will be the output of this code?
import numpy as np arr = np.array([5, 10, 15]) result = np.where(arr % 2 == 0, 'even', 'odd') print(result)
