import turtle
def draw_top():
turtle.penup()
make_border_line(-1)
def draw_down():
turtle.fillcolor("black")
turtle.begin_fill()
turtle.penup()
make_border_line(1)
turtle.end_fill()
def make_border_line(signed=1):
turtle.setposition(100*signed, 0)
turtle.pendown()
turtle.setheading(-90*signed)
turtle.circle(-100, 180)
turtle.setheading(-90*signed)
turtle.circle(50, 180)
turtle.circle(-50, 180)
def draw_circle():
draw_left()
draw_right()
def draw_left():
turtle.fillcolor("black")
make_circle(-1)
def draw_right():
turtle.fillcolor("white")
make_circle(1)
def make_circle(signed=1):
turtle.penup()
turtle.setposition(75*signed, 0)
turtle.pendown()
turtle.begin_fill()
turtle.setheading(-90*signed)
turtle.circle(-25, 360)
turtle.end_fill()
def main():
turtle.shape("turtle")
draw_top()
draw_down()
draw_circle()
turtle.hideturtle()
turtle.done()
if __name__ == '__main__':
main()