Use a for loop to print a box like the one below. Allow the user to specify how wide and how
high the box should be.

******************* 

*                                  *

*                                  *

 ******************* 


width = int(input("Enter the width of the box: "))

height = int(input("Enter the height of the box: "))


for i in range(height):

    if i == 0 or i == height - 1:

        print("*" * width)

    else:

        print("*" + " " * (width - 2) + "*")


This code will use the input() function to get the width and height from the user, and then it will use a for loop to iterate over the specified number of rows. The if statement will check if the current row is the first or last row, and if it is, it will print a row of asterisks. If it is not the first or last row, it will print an asterisk, followed by a number of spaces equal to the width minus two, and then another asterisk.

To run this code, you can save it to a file with a .py extension and run it using the python command in a terminal or command prompt.