text_plain_output_1.png
import numpy as np

import numpy as np
np.random.seed(100)
arr = np.random.randint(1, 11, size=(6, 10))
arr

r, c = np.shape(arr)
r

arr = np.ones((10, 10))
arr[0:-1:2, 0:-1:2] = 0
arr