Line


Without the call to input() at the end of the program it would automatically close the window and we would not be able to see anything.

examples/turtle/line.py
import turtle

t = turtle.getturtle()
t.forward(100)

turtle.exitonclick()

turtle.exitonclick()