Question: This program will prompt the user for the following: a positive (not 0) number of sides (for the regular polygon to be drawn) a positive
This program will prompt the user for the following:
a positive (not 0) number of sides (for the regular polygon to be drawn)
a positive (not 0) length of the sides
a color (string)
and then draw a regular polygon with that number of sides, and the specified side length, in the specified color.
Refer to the screen's textinput and numinput methods.(below)

must be done using python. Thank you!
turtle.textinput (title, prompt) Parameters:. title string prompt - string Pop up a dialog window for input of a string. Parameter title is the title of the dialog window, prompt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return None >>>screen.textinput("NIM", "Name of first player:") turtle. numinput(title, prompt, default-None, minval-None, maxval-None) Parameters: title string prompt string default- number (optional) minval number (optional) maxval - number (optional) Pop up a dialog window for input of a number. title is the title of the dialog window, prompt is a text mostly describing what numerical information to input. default default value, minval: minimum value for input, maxval: maximum value for input The number input must be in the range minvalmaxval if these are given. If not, a hint is issued and the dialog remains open for correction. Return the number input. If the dialog is canceled, return None screen.numinput("Poker", "Your stakes:", 1000, minval-10, maxval-10000)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
