Question: Help Python! Name that Shape: Write a program that determines the name of a shape om its number of sides. Read the number of sides
Help Python!
Name that Shape: Write a program that determines the name of a shape om its number of sides. Read the number of sides from the user and then report the appropriate name as part of a meaningful message. Your program should support shapes with anywhere from 3 up to (and including) 10 sides. If a number of sides outside of this range is entered then vour program should display an appropriate error message, Optiers Window Help Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "licenseO" for more information. RESTART: CAUserslshubalOneDrivelDocuments Shuba Rowan Python AA Rowan 2017 Fall\Week 4 Class 2lnamethatshape.py Enter the number of sides: 2 Enter a number greater than 3 RESTART: C UserslshubalOneDrivelDocumentslShuba RowanPython AA Rowan 2017 Fall\Week 41Class 2namethatshape.py Enter the number of sides: 5 Pentagon RESTART: ClUserslshubalOneDrivelDocuments Shuba Rowan Python AA Rowan 2017 Fall\Week 4Class 2 namethatshape.py Enter the number of sides: 11 That number of sides is not supported by this prograrm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
