def solve(a, b, c, window):
xmin, xmax, ymin, ymax = window
L = []
for x in range(xmin, xmax + 1):
for y in range(ymin, ymax + 1):
if a * x + b * y + c == 0:
L.append((x, y))
return L
s = 10
win = [-s, s, -s, s]
print(solve(2, 3, -7, win))
s = 200
win = [-s, s, -s, s]
print(solve(189, 255, -3, win))
To embed this program on your website, copy the following code and paste it into your website's HTML: