Lesson 5 of 51 · Basics
Moving Forward & Backward
The two most basic movements: forward() and backward().
Python
from turtle import *
forward(100)
backward(50)
forward(150)
done()Output

1
forward()
Moves the turtle forward by a given number of pixels in the direction it's facing.
2
backward()
Moves the turtle backward — the opposite direction. It still draws a line.