Square Spiral || Python
In this we are going to see a basic program to find Square Spiral in Python Programming Language.


import turtle

t = turtle.Turtle()
s = turtle.Screen()


def Spiral(t, line):
    t.forward(line)
    t.right(90)
    Spiral(t, line + 10)


Spiral(t, 10)
s.exitonclick()

#Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post