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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started