NumPy - Broadcasting
What will be the output of this code?
import numpy as np arr = np.array([[1, 2], [3, 4]]) result = arr * 2 print(result)
import numpy as np arr = np.array([[1, 2], [3, 4]]) result = arr * 2 print(result)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions