from turtle import * from random import random setup(800,600) penup() goto(-200,0) pendown() for x in range (1,21): rgb=tuple(random() for i in range(3)) color(rgb) begin_fill() fd(20) left(90) fd(20) left(90) fd(20) left(90) fd(20) left(90) fd(20) end_fill() hideturtle() done()