3 Create a new 10x10 array of zeros. Using slicing, create a checkerboard pattern of zeros and ones. Expected output: Ou
Posted: Fri May 20, 2022 3:41 pm
3 Create a new 10x10 array of zeros. Using slicing, create a checkerboard pattern of zeros and ones. Expected output: Out[92]: array([[0., 1., O., 1., 9., 1., 2., 1., 9., 1.), [1., O., 1., 2., 1., O., 1., O., 1., 2.), [e., 1., 9., 1., O., 1., O., 1., O., 1.), [1., O., 1., O., 1., O., 1., O., 1., 2.), [0., 1., O., 1., 0., 1., O., 1., O., 1.), [1., O., 1., O., 1., O., 1., O., 1., 2.), [0., 1., 9., 1., O., 1., O., 1., O., 1.), [1., O., 1., O., 1., O., 1., O., 1., 0.), [0., 1., 2., 1., O., 1., O., 1., 2., 1.), [1., O., 1., O., 1., O., 1., O., 1., 0.]])