NumPy - Creating Arrays
Find the error in this code that tries to create a NumPy array:
import numpy as np arr = np.array(1, 2, 3) print(arr)
import numpy as np arr = np.array(1, 2, 3) print(arr)
np.array() expects one argument, usually a list or array, not multiple separate values.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions