Question: Practice Problem Write a function drawEQTri to draw an equilateral triangle. It takes a tuple c representing the first vertex of the triangle, an integer
Practice Problem
Write a function drawEQTri to draw an equilateral triangle. It takes a tuple c representing the first vertex of the triangle, an integer a representing the orientation of the first edge of the triangle, and a length L representing the edge length of the triangle. it draws the equilateral triangle using forward, left, and a for loop.
Call it to draw a large yellow filled equilateral triangle in the third quadrant. note that the function draws an unfilled triangle.
Python 3, VSC, and Turtle Graphics
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
