Question: Python 3.6 Question 11a 6 points Write a function named 1etterX that uses turtle graphics to draw an X. The x consists of two lines
Python 3.6

Question 11a 6 points Write a function named 1etterX that uses turtle graphics to draw an X. The x consists of two lines of equal length at right angles to each other letterX takes two parameters: 1) t, a turtle 2) length, the length of each line in the letter.X The turtle t is initially at the crossing point of the two lines of the X letterX should draw beginning at the initial position and orientation of t, and should Teave t in the same position and orientation. Do not make any assumptions about the initial up/down state of the turtle For example, the code below should draw the figure at the right import turtle s - turtle.Screen() aTurt turtle. Turtle() letterX(aTurt,100) Question 11b 14 points Write a function named exes that uses the function letterX to draw a sequence of X' s of specified size and separation. The midpoints of the X's all lie on a line. The function exes takes 5 parameters: 1) t, a turtle 2) initSize, the length of the lines in the first X 3) deltasize, a floating point number between 0 and 1 that is the ratio of the length of the lines of successive X's 4) separation, the distance between midpoints of successive X's 5) XNum, the number of x's to draw For example, if exes is called by the following code, the figure at the right would be correct output import turtle s - turtle.Screen() Shelly turtle. Turtle() exes(shelly, 100, 0.6, 30, 6)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
