Question: Write a Python program that does the following. DO NOT USE TURTLE GRAPHICS, using 'Import graphics' to bring in the module: a . drawing two
Write a Python program that does the following. DO NOT USE TURTLE GRAPHICS, using 'Import graphics' to bring in the module:
a drawing two rectangles, one in black and one in red
b using time.sleep to allow the shapes to remain visible for a brief time
c erases the two shapes by redrawing each of them in white
d moving the upper left corner of each of the rectangles. The black corner moves over the
red corner moves down and over
e repeating steps ad
Change the program so that
a The red and black rectangles remain in the program
b a green Circle travels down the center of the screen
c a blue Circle travels from the lower left corner to the top right corner
write your program
so that the red and black rectangles change course after they collide. You are free to determine the new
course. Some examples are to have the rectangles simply reverse course or perhaps change by
degrees to their current path.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
