Question: Verizon LTE 10:20 AM instructure-uploads.s3.amazonaws.com Exercise 7.3 (polygons2.). Write a program that takes in an integer. If the integer is less than 3, print a
Verizon LTE 10:20 AM instructure-uploads.s3.amazonaws.com Exercise 7.3 (polygons2.). Write a program that takes in an integer. If the integer is less than 3, print a message and exit. Otherwise, draw a shape with as many sides as the user's input. For example, an input of "3 KENTER> 100 would draw a triangle with sides of length 100. The angle between sides in a shape with n-sides is 360 Here is a sample: 3 python3 polygons2.Py Invalid inpat 2 How any side ? O $ python3 polygons2-py s Please enter the nunber of sides: 6 Please enter the side-length: 150 3 python3 polygons2.py Please enter the number of aides: 4 Please enter the aide-length: 100 The last two commands with inputs 6 ENTER 150 and 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
