|
import turtle as pen #imporle #turle
import random
for i in range(19):
pen.color("red")
pen.fillcolor("red")
pen.begin_fill()
pen.forward(200)
pen.right(144)
pen.forward(200)
pen.right(144)
pen.forward(200)
pen.right(144)
pen.forward(200)
pen.right(144)
pen.forward(200)
pen.right(144)
pen.end_fill()
x=random.randint(-900,900)
y=random.randint(-400,400)
pen.penup()
pen.goto(x,y)
pen.pendown()
|
|