Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Makes the turtle take a random walk across the screen.
import turtle
import random
t = turtle.Turtle()
t.speed(0)
for _ in range(100):
direction = random.choice([0, 90, 180, 270])
t.setheading(direction)
t.forward(30)
turtle.done()Turtle Graphics is a key concept in computer graphics and educational programming, originally popularized by the Logo programming language. It allows users to control a 'turtle' cursor on screen to draw shapes and patterns through movement commands.
Origin & Creator
Created as part of the Logo programming language by Seymour Papert and colleagues in the late 1960s at MIT, inspired by Papert's work in constructivist learning.
Industrial Note
Turtle Graphics is primarily educational and pedagogical; rarely used in commercial production graphics but often appears in coding tutorials, workshops, and beginner programming courses.