Код: Выделить всё
import turtle
def draw_square():
window = turtle.Screen()
window.bgcolor("red")
brad = turtle.Turtle()
brad.shape("turtle")
brad.color("yellow")
brad.speed(2)
brad.forward(100)
brad.right(90)
window.exitonclick()
draw_square()

Подробнее здесь: https://stackoverflow.com/questions/787 ... n-a-square