import turtle as t
import random
t.speed(0)
t.tracer(0)
colors = ["red", "blue", "green", "magenta", "cyan"]
def petal():
t.begin_fill()
t.circle(50, 60)
t.left(120)
t.circle(50, 60)
t.left(120)
t.end_fill()
def flower():
for i in range(8):
color = random.choice(colors)
t.pencolor(color)
t.fillcolor(color)
petal()
t.right(45)
# 1-й цветок
flower()
# 2-й цветок
t.penup()
t.goto(-120, -100)
t.pendown()
flower()
# 3-й цветок
t.penup()
t.goto(100, -200)
t.pendown()
flower()
t.update()
t.done()