NumPy - Creating Arrays
Identify the error in this code snippet:
import numpy as np lst = [[1, 2], [3, 4, 5]] arr = np.array(lst) print(arr.shape)
import numpy as np lst = [[1, 2], [3, 4, 5]] arr = np.array(lst) print(arr.shape)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions