def detectBigCase (coord):
return [ e // 3 for e in coord ]
def getBounds (n):
offset = [ e * n for e in (3,3)]
return list ( map (sum, zip ((0,2), offset)))
def getListCoords (bigCaseCoords):
x, y = bigCaseCoords
X = getBounds (x)
Y = getBounds (y)
coords = []
for i in range (X [0], X [1]+1):
for j in range (Y [0], Y [1]+1):
coords.append ((i,j))
return coords
bigCaseCoords = detectBigCase ((6,3))
coords = getListCoords (bigCaseCoords)
print (coords)