import turtle def mygoto(x,y): turtle.penup() turtle.goto(x,y) turtle.pendown(); def draw(z): turtle.begin_fill() for i in range(5): turtle.forward(z) turtle.right(144); turtle.end_fill() turtle.setup(700,500,0,0) turtle.color("yellow") turtle.bgcolor("red") turtle.fillcolor("yellow") mygoto(-220,75) draw(100) for i in range(4): x=1 if i in [0,3]: x=0 mygoto(-100+x*30,135-i*50) turtle.left(0-i*10) draw(30) mygoto(0,0) turtle.hideturtle() turtle.done()