Design Using Python Turtle Graphics

            Design Using Python Turtle Graphics



CODE


from turtle import Turtle, Screen


screen = Screen()
screen.bgcolor('white')


tim = Turtle()
tim.color('red')
tim.speed('fastest')


def square():
    for _ in range (4):
        tim.forward(200)
        tim.right(90)


num = 75
while num != 0:

    square()
    new_pointing = tim.heading() - 5
    tim.setheading(new_pointing)
    num -= 1



screen.exitonclick()
 

Comments

Popular posts from this blog

Speech To Text

Text To Voice Using Python

Calculator Using Python