Python programs can draw with import turtle, as with the standard module: forward, left, circle, penup, color, begin_fill and the others. The drawing appears under the console while the program runs; speed(0) draws at once. Use Step to see the turtle draw line by line.

A square with a loop:

import turtle

for i in range(4):
    turtle.forward(100)
    turtle.left(90)

A star filled with colour:

from turtle import *

color("red", "yellow")
begin_fill()
for i in range(5):
    forward(200)
    right(144)
end_fill()
hideturtle()

A spiral of circles (a Turtle object):

import turtle

t = turtle.Turtle()
t.speed(0)
colors = ["red", "orange", "gold", "green", "blue", "purple"]
for i in range(36):
    t.pencolor(colors[i % 6])
    t.circle(60)
    t.left(10)
t.hideturtle()