3+
from turtle import Turtle,Screen colors = ['red','blue','red','blue','red','blue','red'] sc = Screen() sc.title('ZBC') sc.delay(0) tom = Turtle() tom.shape('turtle') tom.speed(0) for z in range(120): for y in range(3,10): c = colors[y-3] tom.pencolor(c) for x in range(y): tom.fd(20) tom.right(360/y) tom.fd(15+y*5) tom.bk(315) tom.right(3)
3+