Question: in Python 1. Write a function named tri that uses turtle graphics to draw three lines of equal length with a common point of origin.
in Python
1.

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. The function tri takes two parameters: 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 sturtle.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
