Question: 2. Implement a function called draw_rectangle which generates a rectangle with the specified width and height and using the character ch. For example, calling
2. Implement a function called draw_rectangle which generates a rectangle with the specified width and height and using the character ch. For example, calling draw_rectangle(4, 9,'*') will display: Your function must work for any dimensions and for any character. Note: you are only required to write the definition of the function draw_rectangle.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
