“Turtle” is a Python feature which is used for drawing board, it uses multiple command to draw spirals. This comes packed with the standard Python package and need not be installed externally using the pip package.

This a python program in which we are importing turtle. Turtle store all the method of the spiral.

In this program we are making a SQUARE OUT IN SPIRAL HELIX. Here we have used the screen function for showing SQUARE OUT IN SPIRAL HELIX and a pen for drawing the spiral.

PROGRAM:-

import turtle

w = turtle.Screen()
w.title("GoogleGyaan square out in Spiral ")  # Provide title to the Spiral Helix 
w.bgcolor('black')   # background color to the helix.

myPen = turtle.Turtle()
myPen.speed(10)     #Speed of the pen
myPen.color("yellow")    #Color of Pen

side=400
myPen.penup()
myPen.goto(-200,-200)
myPen.pendown()

for i in range (1,100):
   myPen.forward(side)
   myPen.left(90)
   side=side-4

turtle.done()

OUTPUT:-

Square Out In Spiral Helix – SMLOVE