Blog
Square Spiral using Python's Turtle
- Harshit
- October 6, 2020
- 3:48 pm
- 4 Comments
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!
Really helpful for my computing lesson! Thanks loved it.
Glad you’re loving it! 🙂
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?
so useful and looks great