revert to previous commit like a noob

This commit is contained in:
Haksell 2020-05-02 07:36:55 +02:00
parent 04f01dc162
commit 76d42c7795

View File

@ -201,7 +201,9 @@ Create a 8x8 matrix and fill it with a checkerboard pattern (★☆☆)
hint: array[::2]
< a19
Z = np.array([[(i + j) % 2 for j in range(8)] for i in range(8)])
Z = np.zeros((8,8),dtype=int)
Z[1::2,::2] = 1
Z[::2,1::2] = 1
print(Z)
< q20