Question: 4.1. rectangles Write a program called rectangle.py that draws a rectangle on the screen using '@' characters. You will ask the user for the width

 4.1. rectangles Write a program called rectangle.py that draws a rectangle

4.1. rectangles Write a program called rectangle.py that draws a rectangle on the screen using '@' characters. You will ask the user for the width and height of the rectangle and then draw the appropriate rectangle on the screen. You can assume that the height and width are always integers greater than or equal to 2. Some examples of running the program are shown below. User input is shown in bold. $ python3 rectangle.py This program will draw a rectangle. Width: 30 Height: 4 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ G) a @@@@ aaaaaaaaaaaaa $ python3 rectangle.py This program will draw a rectangle. Width: 2 Height: 2 @@ @@

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!