Question: (python)Write the function Drawing with Turtles Task 2 (30 points) Write a program that asks the user to input four values: the number of sides,
(python)Write the function
Drawing with Turtles Task 2 (30 points) Write a program that asks the user to input four values: the number of sides, the length of the side, the color of the perimeter, and the fill color of a regular polygon. The program should draw the simple polygon where all the edges are of the same length, and then fill it in. Submit your solution on Moodle, under the Hmwk 3 files link. Note 1: A simple polygon has at least 3 sides/edges. The number of vertices equals the number of edges. Polygons are primarily classified by the number of sides Edges Name triangle quadrilateral (square, if all edges are of equal lengt 4 5 6 entagon hexagon heptagon octagon nonagon, and so on. 8 9 For each polygon you will have to calculate the angle the turtle needs to turn after drawing each side. The sum of all the angles is 360 degrees. All angles are equal in a polygon with equal sides. Follow the example in the interactive textbook. Note 2: Use the online Python documentation to look up additional functions and features from the turtle graphics package
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
