Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Square using the circle command

  • steps
import turtle

trt = turtle.getturtle()
trt.circle(100, steps=4)

turtle.exitonclick()
import turtle

trt = turtle.getturtle()
trt.right(45)
trt.circle(100, steps=4)

turtle.exitonclick()