Question: Python Programming Import the turtle module and use it to create the following program. The canvas should stay visible on the screen until the user

Python Programming

Import the turtle module and use it to create the following program. The canvas should stay visible on the screen until the user clicks the mouse. Your program should use a main function, a drawRectangle() function that takes in the appropriate parameters to create your rectangle shapes, and a call to main().

Your program should draw two rectangles:

1. 100 pixels x 150 pixels, positioned on the canvas at (75, 100) with a selected pen color from the list on page 273 - developer option.

2. 200 pixels x 75 pixels, positioned on the canvas at (-100, -100) with a different selected pen color from the list.

Some additional features you should to your program. Additional functions can be added to the program as needed for these features:

Make the turtle an actual turtle shape

Fill the rectangles with a color

Write Python on the canvas

Add a yellow color circle inside each rectangle

Draw a 5-point star on the canvas

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!