Create NumPy Array II
Fix the inconsistency to create an array with shape
(4,3)
import numpy as np
a = np.array([
[3, 1, 7],
[10, 4, 9, 2],
[12, 3, 1],
[12, 11, 8]
])
print(a.shape)
# expected: (4,3)
Python
Setting up Python environment...
Output