import numpy as np

m = np.random.rand(10,10)

# Print first row
print(m[:,0])

# Print first column
print(m[0,:])

# Print first two rows and columns
print(m[0:2,0:2])

# Print first 3 rows and 5 columns
print(m[0:3,0:5])