Here’s how to draw a line with computer graphics in Python.

canvas.create_line(x1, y1, x2, y2)

The first point of the line is (x1, y1) and the second point of the line is (x2, y2)