↻
⏵︎ Run
import numpy as np # create a 2D array with shape (3, 4) shape = (3, 4) arr = np.ones(shape) print(arr)
Output