# your code goes here import numpy as np a = np.array([[0, 1, 2],[0, 2, 4],[0, 3, 6]]) print(np.where(a < 4, a,)) # -1 is broadcast #array([[ 0, 1, 2], # [ 0, 2, -1], # [ 0, 3, -1]])
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 4, in <module> ValueError: either both or neither of x and y should be given