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

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!