Creative Python Learning

Turn Python
Code into Art.

Learn Python Turtle by creating beautiful graphics, patterns, spirals and animations. Explore the code, understand how it works, and create your own.

Real Python CodeTurtle GraphicsCreative Projects
Turtle Graphics
Turtle Graphics
Python
from turtle import *
import math

bgcolor('black')
tracer(100)
hideturtle()
a = 0

for _ in range(70):
    for i in range(12):
        color(['hotpink', 'white', 'violet'][i % 3])
        penup()
        home()
        setheading(i * 30 + a)
        pendown()
        r = 80 + 40 * math.sin(a / 15)
        circle(r, 120)
        lt(120)
        circle(r, 120)
    a += 1
    update()

done()
Featured Designs

Beautiful things, made with Python.

Each design is real Python Turtle code. Click any card to see the full code, run it, and make it your own.

View All Designs
51 Lessons

Learn Python Turtle

From your first line of code to stunning generative art. Follow the path, one step at a time.

What can you create?

With just a few lines of Python, you can make art that moves, flows, and surprises.

Flowers

Spirals

Patterns

Generative Art

Animations

Start today — it's free

Turn code into art.

Learn Python Turtle by doing. Explore designs, follow lessons, and create your own masterpiece — all in your browser.

✓ No installation✓ Runs in your browser✓ 100% free