“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 SANKH SPIRAL HELIX. Here we have used the screen function for showingSANKH SPIRAL HELIX and a pen for drawing the spiral.
import turtle w = turtle.Screen() w.title("GoogleGyaan Sankh like Spiral Helix") # Title for the spiral w.bgcolor('black') # Background color of the screen # Used to initialising variables dist = 1 flag = 500 # Used to initialising turtle spiral = turtle.Turtle() spiral.color("blue") # Used to changing speed of turtle spiral.speed(10) # Used to making pattern while flag: # Used to makes the turtle to move forward spiral.forward(dist) # Used to makes the turtle to move left spiral.left(120) spiral.left(1) dist += 1 flag -= 1 turtle.done()