Python programm

profileaboutaleb.88

 Create a set of functions to show as a turtle image the upper case  letters of your last name and the digits of your birth year.  Each character should  be designed in an 8x6 matrix, leaving the top row and the last column  blank. The definition of each of these function will be:
      def ch_<character> (t,x0,y0,color,width)
where:
t: Turtle object
x0, y0: coordinates in pixels of the lower left point where the character will be displayed
color: name of the color to use (string)
width: width of the pen, that will also be the scale of the letter 1, 2, ... (integer)

Then create a main program to write your name and year of birth.

An example of letter design is shown in the following image, but you could use your own:

Resultado de imagen para 7x5 characters

As in previous weeks insert the code as online text and a screenshot of the results as a file attachment. 

    • 8 years ago
    • 10
    Answer(0)