Question: Pyhton turtle Activity You'll write Turtle Graphics code to draw 3 block-style letters, which should be your initials (if you don't have 3 initials, you
Pyhton turtle Activity
You'll write Turtle Graphics code to draw 3 "block-style" letters, which should be your initials (if you don't have 3 initials, you can use another letter or number.) Here's my example of what it might look like; the letters are D P H. (Of course, it would be possible to use portions of circles or angles to make "better" letters, but that's not the point of this activity.)

Make a separate function to draw each letter (e.g., draw_h(height,color) ); the functions should accept one parameter for the height of the letter and another for the pen color; the letter width should be calculated as half the height. I've supplied a shell of a function.
I drew my first letters 100 units tall and 50 units wide ( the height), with 25 units between them; you should do the same. When you call your functions, you should pass 100 as the value of the parameter (e.g., draw_h(100) ) Each letter should be a different color, and you should set the pen size to something other than the default.
You can start drawing at the turtle's starting point (0,0). After you draw them 100 units tall, you should draw them a second time, passing a height of 50 to your functions.
That was the question. I just wanna know how to draw the letter with using the function and "def" in the code one letter is enough, i will do the rest, i just wanna know how. please help
PHo P H
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
