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 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
Get step-by-step solutions from verified subject matter experts
