[VISIBLE ONLY LOCALLY] Optionally view what the website will look like at another time (in PDT):
Credit: Based on a handout by Eric Roberts
Write a graphics program that draws a set of ten circles with different sizes, positions, and colors. Each circle should have a randomly chosen color, a randomly chosen radius between 70 and 200 pixels, and a randomly chosen position on the canvas, subject to the condition that the entire circle must fit inside the canvas without extending past the edge. The following sample run shows one possible outcome:
On some runs of this program you might not see ten circles. Why?
To generate random numbers,
import random at the top of your program. You can then use it to generate random numbers like this:
# generates a random int in the range (min, max) random.randint(min, max)
You can generate random colors using the canvas:
# generates a random color name canvas.get_random_color()
If you finish early, consider making random doughnuts.