Question: Create a turtle graphics Python program that performs the following: Asks the user whether they want to draw a square or a triangle Then asks
Create a turtle graphics Python program that performs the following: Asks the user whether they want to draw a square or a triangle Then asks the user how long they want the sides to be Draws the requested shape on the screen See Figure below for an exampleReports the X and Y coordinates and the turtle's heading after the turn for each corner to the console See Table below for an exampleHelpful tip: The turtle will report the X and Y coordinates using decimals, use the format function to display as integer values Repeats the above steps to allow the user to specify a second shape to draw The drawing window should be a color not used in the other drawing elements The drawing window should have an appropriate title Upload your PY code file to the appropriate Blackboard assignmentFigure A Example PrawneWhat do you want melto draw? square, triangle: I will draw a square.How long do you wantthe sides of your square to bePlease enter the number of pixels eg: My st conner isF and my heading is My nd corner is and my heading isMy rd corner is: and my heading is My th corner is and my headingis What do you want me to draw? square, triangle: I will draw an equilateral triangle.How long do you want the sides of your triangle to be Please enter the number of pixels eg:My st corner is ati and my heading is My nd corner is at: and my heading is My nd cornen is at and my heading is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
