GUI and Desktop Modules
turtle
Educational graphics interface for drawing with a movable cursor on a Tk canvas. Movement, rotation and pen state determine the resulting drawing. The graphical interface requires Tk and a display; repeated moves can create geometric patterns. The example uses its vector helper without creating a screen.
Formal Syntax & Structure
python syntaxpython
import turtleReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from turtle import Vec2Dpoint = Vec2D(2, 3) + Vec2D(4, 1)print(tuple(point))