I want to convert letters "M", "E" and "D" into maritime flags

 from turtle import *

def drawInitials (ref=(0,0), w=100, spacing=10):
"""Params:
    ref (int 2-tuple): bottom right corner, the reference point
    w (int): width of each letter, in pixels
    spacing (int): separation between consecutive letters, in pixels
"""
speed(0)
drawInitials ((0,0), 100, 10)

I should get three flags as show in the figure.

I do not understand.

  • Do you want to draw the maritime flag images using turtle graphics or you want to put the downloaded flag images on a canvas?
  • What is the expected output of the function?
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.