import turtle

turtle.delay(20)
turtle.color("blue")
turtle.pensize(20)

turtle.right(90)
turtle.forward(100)

turtle.color("red")
turtle.backward(100)
turtle.forward(100)

turtle.color("blue")
turtle.left(90)
turtle.forward(100)

turtle.color("red")
turtle.backward(100)
turtle.forward(100)


turtle.penup()
turtle.left(90)
turtle.forward(50)


turtle.color("blue")
turtle.pendown()
turtle.left(90)
turtle.forward(100)

turtle.color("red")
turtle.backward(100)
turtle.forward(100)

turtle.color("blue")
turtle.penup()
turtle.backward(100)

turtle.sety(2)

turtle.pendown()
turtle.forward(100)

turtle.color("red")
turtle.backward(100)
turtle.forward(100)



turtle.exitonclick()