Question: Write a program ( Question1.py ) create functions to print our different 2D geometric shapes. We will write 3 function, drawSquare , drawRectangle , drawCross

Write a program (Question1.py) create functions to print our different 2D geometric shapes. We will write 3 function, drawSquare, drawRectangle, drawCross. Then we will call these three functions to draw these 3 shapes one by one.

Output example:

Type in square size: 3

***

***

***

Type in rectangle size: 3, 5

*****

*****

*****

Type in cross size: 3 (The cross size S must be odd number, and we print *, when the row and column index is size/2. If the end user give an even number as size, you should print out a warning message, but do not print cross)

*

*

*****

*

*

Question 2. Learn how to create customized module and import your customized module in a different file.

Python 3.8 and please DO NOT plagiarize!! Thank you!!

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!