On this page
  1. turtle.forward
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

turtle.forward

Prev: turtle.backward | Up: turtle | Next: turtle.left
Rel: turtle.backward, turtle.left, turtle.pendown, turtle.penup
Ref: docs.python.org — turtle.forward
Tags: #public #python3 #stdlib #turtle


Import

import turtle
from turtle import forward

Signature & Overview

turtle.forward(distance)

Move the turtle forward by the specified distance.

Usage

import turtle

# Moves the default turtle forward by `distance` pixels
assert callable(turtle.forward)

Gotchas

REPL Inspect

from turtle import forward
help(forward)

Linked from

Related notes