# -*- coding: utf-8 -*- import random as rd import turtle as tt win = tt.Screen() ###### tt.setup(0.85, 0.85) tt.shape("turtle") tt.speed(0) color = ['green','red','black','blue'] startangle = -90 for i in color: tt.pencolor(i) sidelength = 0 startangle += 90 for j in range(startangle,startangle+360,7): sidelength += 3 for k in range(4): tt.fd(sidelength) tt.lt(90) tt.seth(j) sidelength += 20 ###### win.exitonclick()