NumPy - Array Operations
What is the output of this code?
import numpy as np x = np.array([1, 2, 3]) y = x * 2 print(y)
import numpy as np x = np.array([1, 2, 3]) y = x * 2 print(y)
x by 2 multiplies each element by 2.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions