+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)

Related questions

0 votes
asked Jan 23, 2020 in Data Science by AdilsonLima
0 votes
asked Jan 31, 2020 in Other by MBarbieri
...