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 

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

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 Programming Questions!