**Python program to print checkerboard ... - TutorialsPoint.dev**
https://tutorialspoint.dev/language/python/python-program-print-checkerboard-pattern-nxn-using-numpy

We can do the same using nested for loops and some if conditions, but using Python’s numpy library, we can import a 2-D matrix and get the checkboard pattern using slicing. W2’ll be using following python function to print pattern : x = np.zeros((n, n), dtype=int) Using this function, we initialize a 2-D matrix with 0’s at all index using numpy. x[1::2, ::2] = 1 : Slice from 1st index ...

**DA:** 2 **PA:** 60 **MOZ Rank:** 65