Graphics With Python





import turtle
t=turtle.Turtle()
s=turtle.Screen()
s.bgcolor('yellow')
t.pencolor('blue')
a=0
b=0
t.speed(0)
t.penup()
t.goto(0,200)
t.pendown()
while True:
t.forward(a)
t.right(b)
a+=3
b+=1
if b==210:
break
t.hideturtle()
turtle.done()

Comments

Post a Comment