4/05/2019

Python (Turtle Library)

Python Program (Turtle Library)
Python Program (Turtle Library)
 


import turtle
t=turtle.Turtle()
s=turtle.Screen()
s.bgcolor('white')
t.pencolor('red')
t.speed(0) #change the speed value 
for i in range(45):
    t.circle(190-1,90)
    t.lt(98)
    t.circle(190-1,90)
    t.lt(18)

No comments:

Post a Comment