Question: the program need to be completed with Python Spyder Your program must prompt the user for the number of squares to draw. The number should
the program need to be completed with Python Spyder
Your program must prompt the user for the number of squares to draw. The number should be greater than zero. If user enters 0 or a negative number, the program should print an error message and halt. We will test your program using a number in the range [1, 10]. Your program should draw all the squares centered at (0,0). The side of the largest square should be 400, your program should reduce the size of the squares by a number of your choice. Just keep in mind that your program should be able to draw at least 10 squares. All the squares should be filled with random colors (line and fill color). We provide a function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
