3 Create a new 10x10 array of zeros. Using slicing, create a checkerboard pattern of zeros and ones. Expected output: Ou
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
3 Create a new 10x10 array of zeros. Using slicing, create a checkerboard pattern of zeros and ones. Expected output: Ou
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.]])
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!