Question: Write a program to draw five squares at random locations in the window; make each square a different color. For full credit, use a loop

Write a program to draw five squares at random locations in the window; make each square a different color. For full credit, use a loop for each square.

I will insert the code given. This is for Python.

''' Asn1-2.py: Draw five squares at random locations Input: None Output: Squares at random locations Author: ''' import turtle import random

#Put your code here

wn.exitonclick() #This should be your last statement

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!