Question: In python Exercise 3 (10 points) You are to write a program that draws multiple hexagons on the screen in random locations (in the range

In python

In python Exercise 3 (10 points) You are to write a program

Exercise 3 (10 points) You are to write a program that draws multiple hexagons on the screen in random locations (in the range [- 100, 100]), side lengths (in the range [50, 100]) and using random colors (you get to specify the possible colors). Use pensize 5. The number of hexagons to draw is input by the user. The program must be organized using functions according to the structure described below. The main function should prompt the user for input, generate random colors, locations, and side lengths, and finally call draw_hexagon in a loop using the randomly generated values as arguments. The function draw_hexagon should draw a hexagon according to the argument values. Below is the program's structure and logic to help you develop it

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!