Question: Question 3: Draw Rectangle (4 points) Write a function that takes 2 parameters w and h that specify the dimensions of a rectangle, and returns

 Question 3: Draw Rectangle (4 points) Write a function that takes

Question 3: Draw Rectangle (4 points) Write a function that takes 2 parameters w and h that specify the dimensions of a rectangle, and returns that rectangle as a string. The rectangle should be composed of the character. Rows in the rectangle should be separated by the new line character In When printed, the rectangle should display with the specified width and height. ie, DrawRec(3,4) will be : def DrawRec(w,h): pass # YOUR CODE HERE raise Not ImplementedError()

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!