pts = {}
pts[(0, 0)] = 0
x, y = 0, 0
dx, dy = 1, 0
i, c = 0, 0
while c < 10**2:
for _ in range(2):
for j in range(i + 1):
c += 1
x += dx
y += dy
pts[(x, y)] = c
dx, dy = -dy, dx
i += 1
print(pts)
To embed this program on your website, copy the following code and paste it into your website's HTML: