NumPy - Indexing and Slicing
Identify the error in this code snippet:
import numpy as np x = np.array([1, 2, 3, 4]) y = np.array([10, 20, 30, 40]) result = np.where(x > 2, y) print(result)
