Quoted By:
im not really sure what you're asking but if its like a repeating checker board pattern in python this would work:
import numpy as np
def array(n, m):
if n <= 0 or m <= 0:
return None
checkerboard = np.zeros((n, m), dtype=int)
checkerboard[::2, ::2] = 1
checkerboard[1::2, 1::2] = 1
return checkerboard
n = 8
m = 7
result = array(n, m)
if result is not None:
print(result)