import turtle turtle.color("blue","red") turtle.begin_fill() while True: turtle.forward(50) turtle.right(120) turtle.forward(50) turtle.left(60) if abs(turtle.pos())<1: break while True: turtle.right(60) turtle.fd(50) if abs(turtle.pos())<1: break turtle.end_fill() turtle.hideturtle()