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 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
Get step-by-step solutions from verified subject matter experts
