Question: USING PYTHOn 11 Write a function named letterX that uses a turtle graphics to draw an X. the x consists of 2 lines of equal
USING PYTHOn
11 Write a function named letterX that uses a turtle graphics to draw an X. the x consists of 2 lines of equal lenght at right angles to each other. The function takes 2 parameters 1-t, a turtle and 2-lenght, the lenght of each line in the letter x.The turtle t is initially at the crossing point of the 2 lines of the x. letter x should draw beggining at the initial position and orientation of t and should leave t in the same position of orientation . do not make assumptions about the initial up/down state of the turtle
11b-write a function named exes that uses the function letterX to draw a sequence of Xs of specified size and separation. the midpoint of the Xs all line on a line. it takes 5 parameters.1-t a turtle,2-initSize the lenght of the lines in the first X, 3-deltaSize a floating point number between 0 and 1 that is the ratio of the lenght of the lines of successive Xs 4-separation the distance between the midpoits of successive Xs and 5-xNum the number of Xs to draw
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
