...
def concentric_squares(x, y, h, w, n):
step1 = h/n
step2 = w/n
for i in range(n):
s = rectangle(x=x, y=y, h=h, w=w)
show (s)
h = h - step1
w = w - step2
h, w = 200, 200
n = 10
# concentric squares at the center of the canvas
concentric_squares(0, 0, h, w, n)
# concentric squares at each corner
concentric_squares(h/2, w/2, h/2, w/2, int(n/2))
concentric_squares(h/2, -w/2, h/2, w/2, int(n/2))
concentric_squares(-h/2, w/2, h/2, w/2, int(n/2))
concentric_squares(-h/2, -w/2, h/2, w/2,int(n/2))
...