Question: Assignment 2 In this assignment we're using the the functions we've seen up to this point from the turtle module. You can use the trig

Assignment 2 In this assignment we're using the the functions we've seen up to this point from the turtle module. You can use the trig functions from the math module. We will consider regular convex polygons, like the pentagon, hexagon, etc. First write a function with two parameters r and n. As before, r is the scale factor, in this case the distance from the center of the polygon to a vertex, and n is the number of sides. Secondly, write a function with parameters r and n that draws an equilateral trigle on each side of the polygon, similar to what you did with the square. Use functions and for loops as appropriate. Turn in your code and a few screenshots to show it works.

please use a trapezoid for the shape

this needs to be done in python 3

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!