NumPy - Array Operations
Identify the issue in this code snippet:
import numpy as np x = np.array([1, 2, 3, 4]) y = np.array([5, 6, 7]) z = x + y print(z)
import numpy as np x = np.array([1, 2, 3, 4]) y = np.array([5, 6, 7]) z = x + y print(z)
x has shape (4,), y has shape (3,)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions