Python Turtle designes


Download free handwritten notes of Python

 import turtle

jp=turtle.Turtle()

screen=turtle.Screen()
screen.bgcolor('black')
col=('white','red','orange','yellow','green','blue','pink')
jp.speed(-5)
for i in range (200):
    jp.forward (i*4)
    jp.right(91)
    jp.color(col[i%7])
    for b in range (3):
        jp.forward(i*4)
        jp.right(91)
        for c in range (2):
            jp.forward(i*4)
            jp.right(91)



Post a Comment

0 Comments