Question: In python OBJECTIVE You will learn how to use the Turtle module in Pythorn. THE PROBLEM You have to write several functions to draw shapes
OBJECTIVE You will learn how to use the Turtle module in Pythorn. THE PROBLEM You have to write several functions to draw shapes using the Turtle module. The shapes that your program must draw are: equilateral triangle, square, pentagon, hexagon, and octagon. Each function will receive as parameters the side length of the shape, the line color of the shape, and the fill color of the shape. The functions will not return any value. The main program will allow the user to prompt: a) The shape type (3-equilateral triangle, 4-square, 5-pentagon, 6-hexagon, 8-octagon, 1 = exit). b) The side length of the shape. c) The line color (1-red, 2- green, 3-blue, 4 yellow) d) The fill color (1-red, 2-green, 3-blue, 4-yellow) Your program must clear the window every time is drawing a shape. It must also continue to prompt the user to select a shape type until this value is equal to 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
