“MYRNA” Code

import axi
BOUNDS = (0,0,8.5,11.75)
# Set this variable to true when you wish to draw with the plotter.
draw = False

def main():
    turtle = axi.Turtle()
    #letter A
    turtle.pu()
    turtle.goto(4,0)
    turtle.pd()
    turtle.goto(0,1)
    turtle.goto(4,2)
    turtle.pu()
    turtle.goto(2,0.5)
    turtle.pd()
    turtle.goto(2,1.5)
    turtle.pu()
    #letter N
    turtle.goto(0,2.25)
    turtle.pd()
    turtle.goto(4,2.25)
    turtle.goto(0,4.25)
    turtle.goto(4,4.25)
    turtle.pu()
    #letter R
    #turtle.goto(4,4.5)
    #turtle.pd()
    #turtle.goto(2,6.5)
    #turtle.goto(2,4.75)
    #turtle.goto(1.5,4.5)
    #turtle.goto(0.5,4.5)
    #turtle.goto(0,4.75)
    #turtle.goto(0,6.5)
    #turtle.goto(4,6.5)
    #turtle.pu()
    turtle.goto(4,6.5)
    turtle.pd()
    turtle.goto(0,6.5)
    turtle.left(90)
    turtle.goto(0,5.5)
    r = 1 # define a radius for the upper semi-cicle of R
    turtle.circle(r, 180, 100) # draw a circular shape with radius r and covering 180° (semi circle) constituted of 100 lines
    turtle.goto(2,6.5)
    turtle.left(135) # rotate 135° to the left
    turtle.goto(4,4.5)
    turtle.pu()
    

    #letter Y
    turtle.goto(0,6.75)
    turtle.pd()
    turtle.goto(2,7.75)
    turtle.goto(0,8.75)
    turtle.pu()
    turtle.goto(2,7.75)
    turtle.pd()
    turtle.goto(4,7.75)
    turtle.pu()
    #letter M
    turtle.goto(4,9)   
    turtle.pd()
    turtle.goto(0,9)
    turtle.goto(2,10)
    turtle.goto(0,11)
    turtle.goto(4,11)
    turtle.pu()
    turtle.home()   
    
   
    # Scale letter to fit A4-sized paper
    drawing = turtle.drawing.rotate_and_scale_to_fit(8.5, 11.75, step=90, padding=0.25)
    # Render drawing
    im = drawing.render()
    # Create an image file of the drawing
    im.write_to_png('Myrna.png')
    # Draw with the plotter if relevant
    if draw:
        axi.draw(drawing)

if __name__ == '__main__':
    main()