turtle design
Download pydroid 3 app from playstore
from turtle import * # initialize all from turtle library
speed(0) # speed of turtle
bgcolor('black') # background color black
col=['cyan','blue','red'] # store colors into col variable
hideturtle() # hide turtle movement
for i in range(150): # turtle move range = 150
pencolor(col[i%3]) # Line color
for j in range(6): # second for loop range 6
fd(i) # forward of i range
rt(50*3) # right direction of turtle move
lt(20*3) # left direction of turtle move
rt(120*2) # right direction of turtle move with first for loop
done() # stop the turtle.
Comments
Post a Comment