Question: In Python question 11 A question 11b Write a function named tri that uses turtle graphics to draw three lines of equal length with a
In Python
question 11 A

question 11b

Write a function named tri that uses turtle graphics to draw three lines of equal length with a common point of origin. Each line should be rotated 120 degrees relative to the previous line. nction tri takes tv 1) t, a turtle that is used for drawing 2) length, an integer that is the length of each line The turtle t is initially at the point of intersection of the three lines. The function tri should draw beginning at the turtle's initial location and orientation, and should exit with t in the same location and orientation. Do not make any assumptions about the initial up/down state of the turtle. For full credit you must use a loop for repeated operations. The following is correct sample input and output. import turtle s = turtle.screen() aTurt turtle,Turtle() tri(aTurt,100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
