Question: Write a function called box that will output boxes given a height and width. Once you've finished writing your function, copy and paste the following
Write a function called box that will output boxes given a height and width. Once you've finished writing your function, copy and paste the following code after it and make sure it works with the function you wrote:
| box(7,5) # Print a box 7 high, 5 across print() # Blank line box(3,2) # Print a box 3 high, 2 across print() # Blank line box(3,10) # Print a box 3 high, 10 across |
You should get the following results from the sample code:
| ***** ***** ***** ***** ***** ***** ***** ** ** ** ********** ********** **********
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
