Merge pull request #190 from Stefan-Heimersheim/master

Remove incorrect alternative solution q19
This commit is contained in:
Nicolas P. Rougier authored and GitHub committed 2022-12-05 18:41:02 +01:00
commit dc425d7872
1 file changed
-6
-6
View File
@@ -211,12 +211,6 @@ Z[1::2,::2] = 1
Z[::2,1::2] = 1
print(Z)
# Alternative solution: Using reshaping
arr = np.ones(64,dtype=int)
arr[::2]=0
arr = arr.reshape((8,8))
print(arr)
< q20
Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element? (★☆☆)