turtle.fd(distance)
Parameters: | distance – a number (integer or float) |
---|
Move the turtle forward by the specified distance, in the direction the turtle is headed.
>>> turtle.position() (0.00,0.00) >>> turtle.forward(25) >>> turtle.position() (25.00,0.00) >>> turtle.forward(-75) >>> turtle.position() (-50.00,0.00)
Please login to continue.