Computer Science, asked by BrainlyMoon, 11 months ago

Lifè of a coder... be likee...:
.
.
nevermind answer this:
write a numpy program to create a 8x8 matrix and fill it with a checkboard pattern:
[[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1]]​

Attachments:

Answers

Answered by adabdulah11
1

Answer:

NumPy Array Object Exercises, Practice and Solution: Write a NumPy program to create a 8x8 matrix and fill it with a checkerboard pattern. ... Checkerboard pattern: [[0 1 0 1 0 1 0 1] [1 0 1 0 1 0 1 0] [0 1 0 1 0 1 0 1] [1 0 1 0 1 0 ...

Explanation:

Answered by Anonymous
3

Import numpy as np

for i in range (0,1)

i[(:0),(1:)]

print (i)

Similar questions