turtle.forward(distance)
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.
1 2 3 4 5 6 7 8 | >>> 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.