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

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