Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Case You have been tasked to create a program that draws a box. Your program needs to ask the user for the dimensions of the

Case

You have been tasked to create a program that draws a box. Your program needs to ask the user for the dimensions of the box or length and width. The program will then print out your box.

Since the dimensions of the box will vary each time you run the program, here is a sample output when the user entered 5 for the box width and 10 for the box length.

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

This is my code I am entering, but doing something wrong.....

width = int(input("Enter the width of your box: ")) length = int(input("Enter the length of your box: ")) border = '*' + ' ' + '*' print() while width != length: print(width * '*') print(border)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What would the rationale for a PMS be?

Answered: 1 week ago

Question

Question Can any type of stock or securities be used in an ESOP?

Answered: 1 week ago