Square Spiral using Python's Turtle

A code to draw a square spiral design using the Turtle programming in Python

Welcome to the code! Here’s a simple code for drawing a square spiral design using Turtle programming.

In this code, we used a turtle named “Squary” to design a square spiral design. The default color (black) is used. You can also change the color using the command *squary.color(“red”)*, you can replace “red” with the color you want. The turtle draws a line by moving forward and rotates left for 91 degrees, this keeps repeating for 500 times forming squares in a spiral.

Note: Loved the post? You too can publish your article on “Python for fun” which will be loved by millions. Contribute an article!

4.4 12 votes
Rating
Subscribe
Notify of
guest
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Xandria
Xandria
1 year ago

Really helpful for my computing lesson! Thanks loved it.

Gabriel
Gabriel
7 months ago

Why “i”?
I know i will repeat 500 times but when you ask it to go foward why do you use i instead of a number?

nye
nye
3 months ago

so useful and looks great