Question: python code Problem 6: Write a Python application that requests from the user to enter the number of sides a certain geometrical shape has. The

python code python code Problem 6: Write a Python application that requests from the

Problem 6: Write a Python application that requests from the user to enter the number of sides a certain geometrical shape has. The shapes and the number of sides are listed in the below table: Line Number of Sides Shape 1 3 Triangle 4 Rectangle 5 Pentagon 6 Hexagon 7 Heptagon 8 Octagon 9 Nonagon 10 Decagon 12 Dodecagon Following the user's input, the application has to identify the corresponding shape and print to the user a message saying "A shape that has XX sides is a YYYYY." and then will skip a line and display the Pythonssssssssssssssssssssss prompt again. In the above message, the XX corresponds to the number of sides the user has entered and the YYYYY corresponds to the appropriate shape having XX sides. If the user enters a number of shapes that is not among the ones listed in the table above, the message "ERROR: Unrecognized Shape." must be displayed before the application terminates

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!