Question: PYTHON CODE PLEASE Question 11a 6 points write a function named letter that uses turtle graphics to draw an X. The x consists of two

PYTHON CODE PLEASEPYTHON CODE PLEASE Question 11a 6 points write a function named letterthat uses turtle graphics to draw an X. The x consists of

Question 11a 6 points write a function named letter 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 of 2) length, the length 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 leave 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 a turtle. Screen(O) aTurt = turtle. Turtle(O 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 Mic 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(O) exes(shelly, 100, 0.6, 30 , 6) X x x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!