What im trying to do is to check how many times does an 1x1 slice fits in the entire array, i used slice to get array "fragments" but how to check how many times that fragment fits inside the entire array?
the 1x1 fits 64 times, 2x2 16.....
Tablero means board, by uxu i mean 1x1, dxd = 2x2....
the 1x1 fits 64 times, 2x2 16.....
Tablero means board, by uxu i mean 1x1, dxd = 2x2....
import numpy as np tablero = np.zeros((8,8)) print(tablero) uxu = tablero[0:1,0:1] print(uxu) dxd = tablero [0:2,0:2] print (dxd) txt = tablero [0:3,0:3] print (txt)