You will write 3 separate Python programs with the files named as below.

poly.py

This program will prompt the user for the following:

1.a positive (not 0) number of sides (for the regular polygon to be drawn)

2.a positive (not 0) length of the sides

3.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 (Links to an external site.)Links to an external site. and numinput (Links to an external site.)Links to an external site. methods.

grid.py

This program will draw a user-defined grid on the screen. When run the program will prompt the user for a positive (not 0) number to use for the grid spacing. Make sure to provide a reasonable default, and reasonable max value.

multipoly.py

This program will draw a flower-type design, where the user can control the number of petals. The program will prompt the user for the following:

1.a positive (not 0) number of sides for each petal (regular polygon)

2.a positive (not 0) length of the sides

3.a positive (not 0) number (>= 3) of petals (polygons) to draw

4."yes" or "no" regarding whether the petals should be filled in.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.