def line(x1, y1, x2, y2): t.up() t.setx(x1) t.sety(y1) t.down() t.goto(x2, y2) # print ("Line drawn from (",x1,", ",y1,") to (",x2,", ",y2,").")