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

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 4100 should draw these two images: 13 CSE/IT 107 Lab 2: Code Stvle and Conditional Execution

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!