1. 
import turtle
import random
z1 = turtle.Turtle()
z1.speed(0)
for i in range(10):
   z1.color(random.choice(['white','red','blue','green','yellow']))
   for x in range(4):
       z1.forward(100)
       z1.right(90)
   z1.right(36)
 
 
2. 
import turtle
import random
z1 = turtle.Turtle()
z1.speed(0)
for x in range(50, 300):
    z1.color(random.choice(['white','red','blue','green','yellow']))
    z1.forward(x)
    z1.right(91)

Dodatkowe informacje