+1 vote
in NumPy by
create matrix 2 * 2 with value ranging from 1 to 4

1 Answer

0 votes
by
create matrix 2 * 2 with value ranging from 1 to 4

arr = np.arange(1,5).reshape(2,2)

print(arr)
...