Skip to content

Python Turtle

Turtle is a visual extension for python, but its still python code, utilising the same python rules and syntax. Although the principles behind turtle graphics can be extended to include 3D space this page will be focusing on 2D graphics. Turtle is a pre installed python library however a pip install might be needed.

Turtle is a visual extension for python, but its still python code, utilising the same python rules and syntax. Although the principles behind turtle graphics can be extended to include three-dimensional space this page will be focusing on two-dimensional graphics. Turtle is a pre installed python library however a pip install might be needed.

when first starting a new file, the turtle library must be called. There are two options for calling the turtle library.

from turtle import *
# or
from turtle import Turtle

Checklist

  • I have made a python file.
  • I have imported from turtle.