Question: Write Python code that asks a user for a number between 0 and 200 (inclusive) Call that variable SideParam. Then it asks the user for

 Write Python code that asks a user for a number between

Write Python code that asks a user for a number between 0 and 200 (inclusive) Call that variable SideParam. Then it asks the user for another number between 3 and 360 (inclusive). Call that variable Sides a) The code should first check that the 2 input numbers do indeed meet this criteria. Bonus points if you can do this with ONE if-statement! If any of the criteria is not met, you should print a message to say it was out of range and stop. Then, have your code use the Turtle graphics module to draw a polygon with number of sides equal to Sides and having side lengths to half of SideParam, plus 50 b)

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!